Commit 7496458c authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

The QUIT commands returns OK on master

parent 8b8b7afe
...@@ -35,8 +35,11 @@ int main(void) { ...@@ -35,8 +35,11 @@ int main(void) {
__connect(&c); __connect(&c);
test("Returns I/O error when the connection is lost: "); test("Returns I/O error when the connection is lost: ");
test_cond(redisCommand(c,"QUIT") == NULL && reply = redisCommand(c,"QUIT");
strcmp(c->error,"Server closed the connection") == 0); test_cond(redisCommand(c,"PING") == NULL &&
strcasecmp(reply->reply,"OK") == 0 &&
strcmp(c->error,"read: Server closed the connection") == 0);
freeReplyObject(reply);
redisFree(c); redisFree(c);
__connect(&c); /* reconnect */ __connect(&c); /* reconnect */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment