You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Make test more robust
The redis server ends the connection and the stream end might be triggered before the quit command returned and is therefor racy.
This commit is contained in:
@@ -101,9 +101,8 @@ describe("The 'multi' method", function () {
|
||||
beforeEach(function (done) {
|
||||
client = redis.createClient.apply(null, args);
|
||||
client.once('ready', function () {
|
||||
client.quit();
|
||||
client.quit(done);
|
||||
});
|
||||
client.once('end', done);
|
||||
});
|
||||
|
||||
it('reports an error', function (done) {
|
||||
|
Reference in New Issue
Block a user