assert against correct client object
This commit is contained in:
parent
43555e7931
commit
1731def7dd
@ -17,8 +17,8 @@ pg.connect(conString, assert.success(function(client) {
|
|||||||
//subscribe to the pg error event
|
//subscribe to the pg error event
|
||||||
assert.emits(pg, 'error', function(error, brokenClient) {
|
assert.emits(pg, 'error', function(error, brokenClient) {
|
||||||
assert.ok(error);
|
assert.ok(error);
|
||||||
assert.ok(client);
|
assert.ok(brokenClient);
|
||||||
assert.equal(client.id, 1);
|
assert.equal(client.id, brokenClient.id);
|
||||||
pg.end();
|
pg.end();
|
||||||
});
|
});
|
||||||
//kill the connection from client
|
//kill the connection from client
|
||||||
|
Loading…
Reference in New Issue
Block a user