From b439f06b1af0728b3ec639cef41d7ed62d2c70ad Mon Sep 17 00:00:00 2001 From: Lloyd Cotten Date: Wed, 18 Feb 2015 14:01:27 -0330 Subject: [PATCH] fix assert equals in tests --- test/connection-pool.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/connection-pool.test.js b/test/connection-pool.test.js index 5ffbee6..8753556 100644 --- a/test/connection-pool.test.js +++ b/test/connection-pool.test.js @@ -134,7 +134,7 @@ describe('ConnectionPool', function () { assert.strictEqual(rowCount, 1); connection.release(); setTimeout(function () { - assert.equal(pool.connections.length, 0); + assert.equal(pool.connections.length, 1); pool.drain(done); }, 200); }); @@ -166,7 +166,7 @@ describe('ConnectionPool', function () { assert.strictEqual(rowCount, 1); connection.release(); setTimeout(function () { - assert.equal(pool.connections.length, 0); + assert.equal(pool.connections.length, 1); pool.drain(done); }, 200); });