1
0
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:
Ruben Bridgewater
2016-03-26 12:44:13 +01:00
parent 1a884a84eb
commit 68f2a8894e

View File

@@ -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) {