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