Skip to content

Commit 5fac595

Browse files
author
Ruben Bridgewater
committed
Fix async test executed sync
1 parent 8308a3e commit 5fac595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/connection.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ describe('connection tests', function () {
356356
});
357357
});
358358

359-
it('use the system socket timeout if the connect_timeout has not been provided', function () {
359+
it('use the system socket timeout if the connect_timeout has not been provided', function (done) {
360360
client = redis.createClient({
361361
parser: parser,
362362
host: '2001:db8::ff00:42:8329' // auto detect ip v6
@@ -365,6 +365,7 @@ describe('connection tests', function () {
365365
assert.strictEqual(client.connection_options.family, 6);
366366
process.nextTick(function () {
367367
assert.strictEqual(client.stream.listeners('timeout').length, 0);
368+
done();
368369
});
369370
});
370371

0 commit comments

Comments
 (0)