You've already forked node-redis
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:
10
test.js
10
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
|
||||
|
Reference in New Issue
Block a user