Make this work on Redis 3.0
This commit is contained in:
parent
27d4dcb6f0
commit
b872919463
2
test.c
2
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: ");
|
test("Returns I/O error when the connection is lost: ");
|
||||||
reply = redisCommand(c,"QUIT");
|
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
|
/* > 2.0 returns OK on QUIT and read() should be issued once more
|
||||||
* to know the descriptor is at EOF. */
|
* to know the descriptor is at EOF. */
|
||||||
test_cond(strcasecmp(reply->str,"OK") == 0 &&
|
test_cond(strcasecmp(reply->str,"OK") == 0 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user