From 2e68a7a270b8bffe96fac296ee5e52438c783608 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 26 Mar 2016 15:42:03 +0100 Subject: [PATCH] Make test more robust by waiting till redis answered The former fix was actually not working as expected --- test/multi.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/multi.spec.js b/test/multi.spec.js index 6d7bb6fcec..874d620134 100644 --- a/test/multi.spec.js +++ b/test/multi.spec.js @@ -99,10 +99,12 @@ describe("The 'multi' method", function () { describe('when not connected', function () { beforeEach(function (done) { + var end = helper.callFuncAfter(done, 2); client = redis.createClient.apply(null, args); client.once('ready', function () { - client.quit(done); + client.quit(end); }); + client.once('end', end); }); it('reports an error', function (done) {