diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2015-04-16 17:58:53 +0200 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2015-04-16 18:24:50 +0200 |
commit | b872919463fbc04c3a8fde113cb9ae89dfcb3859 (patch) | |
tree | 2ca2b28c368d8f183062ffef91f4be8798f9b720 | |
parent | 27d4dcb6f03b43b0f6d62a3982e80c5744105422 (diff) |
Make this work on Redis 3.0
-rw-r--r-- | test.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |