summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 10:54:54 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 10:54:54 +0200
commitfc790ebea63d122066180b255e6a3b980b37f73e (patch)
tree9234afaa7292fa2c531e8b93479ca85307a22004
parent26588f50074baf2b953468cd37405444bd4db179 (diff)
downloadhiredict-fc790ebea63d122066180b255e6a3b980b37f73e.tar.xz
State should not be reset after protocol error
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index 5724a3e..1b75ee0 100644
--- a/test.c
+++ b/test.c
@@ -325,14 +325,14 @@ static void test_reply_reader(void) {
test_cond(ret == REDIS_OK && reply == (void*)REDIS_REPLY_STATUS);
redisReplyReaderFree(reader);
- test("Properly reset state after protocol error: ");
+ test("Don't reset state after protocol error: ");
reader = redisReplyReaderCreate();
redisReplyReaderSetReplyObjectFunctions(reader,NULL);
redisReplyReaderFeed(reader,(char*)"x",1);
ret = redisReplyReaderGetReply(reader,&reply);
assert(ret == REDIS_ERR);
ret = redisReplyReaderGetReply(reader,&reply);
- test_cond(ret == REDIS_OK && reply == NULL)
+ test_cond(ret == REDIS_ERR && reply == NULL);
}
static void test_throughput(void) {