From 1731def7dd9a09e559e045bb7293b8d801a0707d Mon Sep 17 00:00:00 2001 From: brianc Date: Tue, 13 Sep 2011 18:18:44 -0500 Subject: [PATCH] assert against correct client object --- test/integration/connection-pool/error-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/connection-pool/error-tests.js b/test/integration/connection-pool/error-tests.js index 3cecf56..0fa31b9 100644 --- a/test/integration/connection-pool/error-tests.js +++ b/test/integration/connection-pool/error-tests.js @@ -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