1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Use process.nextTick to uncork

This commit is contained in:
Ruben Bridgewater
2016-04-29 06:11:12 +02:00
parent a1755b91fb
commit 340cddb6d1
4 changed files with 19 additions and 11 deletions

View File

@@ -1112,7 +1112,9 @@ describe('The node_redis client', function () {
}
multi.exec();
assert.equal(client.command_queue_length, 15);
helper.killConnection(client);
process.nextTick(function () {
helper.killConnection(client);
});
});
var end = helper.callFuncAfter(done, 3);
@@ -1203,7 +1205,9 @@ describe('The node_redis client', function () {
}
multi.exec();
assert.equal(client.command_queue.length, 15);
helper.killConnection(client);
process.nextTick(function () {
helper.killConnection(client);
});
});
var end = helper.callFuncAfter(done, 3);