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