Skip to content

Commit b872919

Browse files
committed
Make this work on Redis 3.0
1 parent 27d4dcb commit b872919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static void test_blocking_io_errors(struct config config) {
466466

467467
test("Returns I/O error when the connection is lost: ");
468468
reply = redisCommand(c,"QUIT");
469-
if (major >= 2 && minor > 0) {
469+
if (major > 2 || (major == 2 && minor > 0)) {
470470
/* > 2.0 returns OK on QUIT and read() should be issued once more
471471
* to know the descriptor is at EOF. */
472472
test_cond(strcasecmp(reply->str,"OK") == 0 &&

0 commit comments

Comments
 (0)