From 383bafd2cf57e7b3ba54dc97504e5e26321ff2f5 Mon Sep 17 00:00:00 2001 From: Jeff Barczewski Date: Wed, 27 Mar 2013 13:39:43 -0500 Subject: [PATCH] limit cbtests to 2.6.11 and above Test hangs on older versions of Redis --- test.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 08fea7f5f6..cde711482a 100644 --- a/test.js +++ b/test.js @@ -881,8 +881,11 @@ tests.PUNSUB_EMPTY = function () { }; tests.UNSUB_EMPTY_CB = function () { - // test situation where unsubscribe reply[1] is null var name = "UNSUB_EMPTY_CB"; + // test hangs on older versions of redis, so skip + if (!server_version_at_least(client, [2, 6, 11])) return next(name); + + // test situation where unsubscribe reply[1] is null client3.unsubscribe(); // unsubscribe from all so can test null client3.unsubscribe(function (err, results) { // reply[1] will be null @@ -892,8 +895,11 @@ tests.UNSUB_EMPTY_CB = function () { }; tests.PUNSUB_EMPTY_CB = function () { - // test situation where punsubscribe reply[1] is null var name = "PUNSUB_EMPTY_CB"; + // test hangs on older versions of redis, so skip + if (!server_version_at_least(client, [2, 6, 11])) return next(name); + + // test situation where punsubscribe reply[1] is null client3.punsubscribe(); // punsubscribe from all so can test null client3.punsubscribe(function (err, results) { // reply[1] will be null