From b872919463fbc04c3a8fde113cb9ae89dfcb3859 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Thu, 16 Apr 2015 17:58:53 +0200 Subject: Make this work on Redis 3.0 --- test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.c b/test.c index 1b95215..c1575b1 100644 --- a/test.c +++ b/test.c @@ -466,7 +466,7 @@ static void test_blocking_io_errors(struct config config) { test("Returns I/O error when the connection is lost: "); reply = redisCommand(c,"QUIT"); - if (major >= 2 && minor > 0) { + if (major > 2 || (major == 2 && minor > 0)) { /* > 2.0 returns OK on QUIT and read() should be issued once more * to know the descriptor is at EOF. */ test_cond(strcasecmp(reply->str,"OK") == 0 && -- cgit v1.2.3