Skip to content

Commit 2db4bcb

Browse files
committed
Remove debugging
1 parent 282f385 commit 2db4bcb

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
'use strict'
21
const helper = require('./test-helper')
32
const assert = require('assert')
43
const suite = new helper.Suite()
54
const pgpass = require('pgpass')
6-
const fs = require('fs')
75

86
class Wait {
97
constructor() {
@@ -52,17 +50,6 @@ suite.test('cleartext password auth does not crash with null password using pg-p
5250
// set this to undefined so pgpass will use the file
5351
delete process.env.PGPASSWORD
5452
const wait = new Wait()
55-
console.log()
56-
console.log('hit hit hit')
57-
console.log('PGPASSFILE', process.env.PGPASSFILE)
58-
// check if file exists
59-
if (!fs.existsSync(process.env.PGPASSFILE)) {
60-
throw new Error('PGPASSFILE does not exist')
61-
}
62-
// print the contents of the file
63-
console.log('contents of the file:', fs.readFileSync(process.env.PGPASSFILE, 'utf8'))
64-
// print the mode of the file
65-
console.log('stats of the file:', fs.statSync(process.env.PGPASSFILE))
6653
const client = helper.client({
6754
host: 'foo',
6855
port: 5432,
@@ -71,7 +58,6 @@ suite.test('cleartext password auth does not crash with null password using pg-p
7158
password: (params) => {
7259
return new Promise((resolve) => {
7360
pgpass(params, (pass) => {
74-
console.log('in pgpass callback. read password:', pass)
7561
wait.done(10)
7662
resolve(pass)
7763
})

0 commit comments

Comments
 (0)