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

@@ -674,7 +674,9 @@ describe("The 'multi' method", function () {
// The commands should still be fired, no matter that the socket is destroyed on the same tick
client.multi().set('foo', 'bar').get('foo').exec();
// Abort connection before the value returned
client.stream.destroy();
process.nextTick(function () {
client.stream.destroy();
});
});
it('indivdual commands work properly with multi', function (done) {