From 7496458c68d41d946df52fcaf6833ab49cd07b4a Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 18 Oct 2010 12:01:17 +0200 Subject: The QUIT commands returns OK on master --- test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test.c b/test.c index e4de5cd..ce36a91 100644 --- a/test.c +++ b/test.c @@ -35,8 +35,11 @@ int main(void) { __connect(&c); test("Returns I/O error when the connection is lost: "); - test_cond(redisCommand(c,"QUIT") == NULL && - strcmp(c->error,"Server closed the connection") == 0); + reply = redisCommand(c,"QUIT"); + test_cond(redisCommand(c,"PING") == NULL && + strcasecmp(reply->reply,"OK") == 0 && + strcmp(c->error,"read: Server closed the connection") == 0); + freeReplyObject(reply); redisFree(c); __connect(&c); /* reconnect */ -- cgit v1.2.3