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

Add hiredis guard to INCR test

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
This commit is contained in:
Bryce Baril
2013-02-23 19:17:27 -08:00
committed by DTrejo
parent 405011b640
commit 87132e2b03

View File

@@ -127,6 +127,11 @@ tests.FLUSHDB = function () {
tests.INCR = function () {
var name = "INCR";
if (bclient.reply_parser.name == "hiredis") {
console.log("Skipping INCR buffer test with hiredis");
return next(name);
}
// Test incr with the maximum JavaScript number value. Since we are
// returning buffers we should get back one more as a Buffer.
bclient.set("seq", "9007199254740992", function (err, result) {