diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-10-18 12:01:17 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-10-18 12:01:17 +0200 |
commit | 7496458c68d41d946df52fcaf6833ab49cd07b4a (patch) | |
tree | 7971734facf06dbaf9a087983cba1320e5793333 | |
parent | 8b8b7afef28055ca40230abf3e91006884e6c8f8 (diff) |
The QUIT commands returns OK on master
-rw-r--r-- | test.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 */ |