1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Fix async test executed sync

This commit is contained in:
Ruben Bridgewater
2016-04-14 02:11:13 +02:00
parent 8308a3e6ae
commit 5fac5958c3

View File

@@ -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({ client = redis.createClient({
parser: parser, parser: parser,
host: '2001:db8::ff00:42:8329' // auto detect ip v6 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); assert.strictEqual(client.connection_options.family, 6);
process.nextTick(function () { process.nextTick(function () {
assert.strictEqual(client.stream.listeners('timeout').length, 0); assert.strictEqual(client.stream.listeners('timeout').length, 0);
done();
}); });
}); });