Skip to content

Commit 7b10006

Browse files
committed
refactor(pgsql-test): remove auto-authentication from constructor
- Remove implicit auth() call when opts.auth is provided - auth() method now purely manual, must be called explicitly by developers - Makes authentication behavior more explicit and predictable per user feedback Co-Authored-By: Dan Lynch <pyramation@gmail.com>
1 parent 6de4adb commit 7b10006

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/pgsql-test/src/test-client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ export class PgTestClient {
3030
if (!opts.deferConnect) {
3131
this.connectPromise = this.client.connect();
3232
if (opts.trackConnect) opts.trackConnect(this.connectPromise);
33-
if (opts.auth) {
34-
this.connectPromise = this.connectPromise.then(() => this.auth(opts.auth));
35-
}
3633
}
3734
}
3835

0 commit comments

Comments
 (0)