From 5fac5958c3d41e0c9e18fb8811ffe5fd9df871af Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 14 Apr 2016 02:11:13 +0200 Subject: [PATCH] Fix async test executed sync --- test/connection.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/connection.spec.js b/test/connection.spec.js index 9b5634ab67..aa86a7e9db 100644 --- a/test/connection.spec.js +++ b/test/connection.spec.js @@ -356,7 +356,7 @@ describe('connection tests', function () { }); }); - it('use the system socket timeout if the connect_timeout has not been provided', function () { + it('use the system socket timeout if the connect_timeout has not been provided', function (done) { client = redis.createClient({ parser: parser, host: '2001:db8::ff00:42:8329' // auto detect ip v6 @@ -365,6 +365,7 @@ describe('connection tests', function () { assert.strictEqual(client.connection_options.family, 6); process.nextTick(function () { assert.strictEqual(client.stream.listeners('timeout').length, 0); + done(); }); });