1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

limit cbtests to 2.6.11 and above

Test hangs on older versions of Redis
This commit is contained in:
Jeff Barczewski
2013-03-27 13:39:43 -05:00
parent 655681f790
commit 383bafd2cf

10
test.js
View File

@@ -881,8 +881,11 @@ tests.PUNSUB_EMPTY = function () {
}; };
tests.UNSUB_EMPTY_CB = function () { tests.UNSUB_EMPTY_CB = function () {
// test situation where unsubscribe reply[1] is null
var name = "UNSUB_EMPTY_CB"; 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(); // unsubscribe from all so can test null
client3.unsubscribe(function (err, results) { client3.unsubscribe(function (err, results) {
// reply[1] will be null // reply[1] will be null
@@ -892,8 +895,11 @@ tests.UNSUB_EMPTY_CB = function () {
}; };
tests.PUNSUB_EMPTY_CB = function () { tests.PUNSUB_EMPTY_CB = function () {
// test situation where punsubscribe reply[1] is null
var name = "PUNSUB_EMPTY_CB"; 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(); // punsubscribe from all so can test null
client3.punsubscribe(function (err, results) { client3.punsubscribe(function (err, results) {
// reply[1] will be null // reply[1] will be null