assert against correct client object

This commit is contained in:
brianc 2011-09-13 18:18:44 -05:00
parent 43555e7931
commit 1731def7dd

View File

@ -17,8 +17,8 @@ pg.connect(conString, assert.success(function(client) {
//subscribe to the pg error event
assert.emits(pg, 'error', function(error, brokenClient) {
assert.ok(error);
assert.ok(client);
assert.equal(client.id, 1);
assert.ok(brokenClient);
assert.equal(client.id, brokenClient.id);
pg.end();
});
//kill the connection from client