Skip to content

Commit bc8b8f5

Browse files
committed
More debugging logging in tests
1 parent 50ca5fa commit bc8b8f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/pg/test/unit/client/password-callback-tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ suite.test('cleartext password auth does not crash with null password using pg-p
5454
if (!fs.existsSync(process.env.PGPASSFILE)) {
5555
throw new Error('PGPASSFILE does not exist')
5656
}
57+
// print the contents of the file
58+
console.log('contents of the file:', fs.readFileSync(process.env.PGPASSFILE, 'utf8'))
59+
// print the mode of the file
60+
console.log('stats of the file:', fs.statSync(process.env.PGPASSFILE))
5761
const client = helper.client({
5862
host: 'foo',
5963
port: 5432,

0 commit comments

Comments
 (0)