From 25113e67591b0d451cb29c357a78dbd503387797 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 3 Oct 2015 04:13:04 +0200 Subject: [PATCH] Fix test --- test/pubsub.spec.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/pubsub.spec.js b/test/pubsub.spec.js index d8c93ae9f6..b39b532cbd 100644 --- a/test/pubsub.spec.js +++ b/test/pubsub.spec.js @@ -22,7 +22,6 @@ describe("publish/subscribe", function () { pub = redis.createClient.apply(redis.createClient, args); sub = redis.createClient.apply(redis.createClient, args); - pub.once("error", done); pub.once("connect", function () { pub.flushdb(function () { pubConnected = true; @@ -31,8 +30,6 @@ describe("publish/subscribe", function () { } }); }); - - sub.once("error", done); sub.once("connect", function () { subConnected = true; if (pubConnected) { @@ -48,17 +45,14 @@ describe("publish/subscribe", function () { pub = redis.createClient(); sub = redis.createClient({ - disable_resubscribing: false + disable_resubscribing: true }); - pub.once("error", done); pub.once("connect", function () { pubConnected = true; if (subConnected) { done(); } }); - - sub.once("error", done); sub.once("connect", function () { subConnected = true; if (pubConnected) {