You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
tweaks based on running test-suite on Windows on an older Redis
This commit is contained in:
@@ -18,12 +18,7 @@ describe("The 'watch' method", function () {
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
client.once("error", done);
|
||||
client.once("connect", function () {
|
||||
client.flushdb(function (err) {
|
||||
if (!helper.serverVersionAtLeast(client, [2, 2, 0])) {
|
||||
err = Error('some watch commands not supported in redis <= 2.2.0');
|
||||
}
|
||||
return done(err);
|
||||
});
|
||||
client.flushdb(done);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user