You've already forked node-redis
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user