From 0d6c737c875026841f78044e9622ff7c08c4de5b Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Mon, 21 Apr 2025 17:06:58 -0500 Subject: [PATCH] Use env vars for test connection in cf tests --- packages/pg/test/cloudflare/vitest-cf.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/pg/test/cloudflare/vitest-cf.test.ts b/packages/pg/test/cloudflare/vitest-cf.test.ts index b893667f..94255b30 100644 --- a/packages/pg/test/cloudflare/vitest-cf.test.ts +++ b/packages/pg/test/cloudflare/vitest-cf.test.ts @@ -1,11 +1,10 @@ import { Pool } from 'pg' import { test } from 'vitest' +import args from '../../test/cli' import assert from 'node:assert' test('default', async () => { - const pool = new Pool({ - connectionString: 'postgres://postgres:password@localhost:5432/postgres', - }) + const pool = new Pool() const result = await pool.query('SELECT $1::text as name', ['cloudflare']) assert(result.rows[0].name === 'cloudflare')