Skip to content

Commit 1731def

Browse files
committed
assert against correct client object
1 parent 43555e7 commit 1731def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/connection-pool/error-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pg.connect(conString, assert.success(function(client) {
1717
//subscribe to the pg error event
1818
assert.emits(pg, 'error', function(error, brokenClient) {
1919
assert.ok(error);
20-
assert.ok(client);
21-
assert.equal(client.id, 1);
20+
assert.ok(brokenClient);
21+
assert.equal(client.id, brokenClient.id);
2222
pg.end();
2323
});
2424
//kill the connection from client

0 commit comments

Comments
 (0)