mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Fix race condition in test
This commit is contained in:
parent
aea984f7bc
commit
c6a235fb5d
@ -31,7 +31,6 @@ pg.connect(helper.config, assert.success(function(client, done) {
|
||||
//kill the connection from client
|
||||
client2.query(killIdleQuery, params, assert.success(function(res) {
|
||||
//check to make sure client connection actually was killed
|
||||
assert.lengthIs(res.rows, 1);
|
||||
//return client2 to the pool
|
||||
done2();
|
||||
pg.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user