summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 17:49:39 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 17:49:39 +0200
commitbc5dcdbc85775ffa5213ae0678ca452ad4c8683f (patch)
tree09f90694763e6b82536407e21abc9bd24682cd27 /test.c
parent171b5a24d44b24b1d15ba1d6689cbe37e9a0cfe6 (diff)
Status replies should have type REDIS_REPLY_STATUS
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.c b/test.c
index 5bddf04..cc15ba5 100644
--- a/test.c
+++ b/test.c
@@ -44,7 +44,7 @@ static void test_blocking_connection() {
__connect(&c); /* reconnect */
test("Is able to deliver commands: ");
reply = redisCommand(c,"PING");
- test_cond(reply->type == REDIS_REPLY_STRING &&
+ test_cond(reply->type == REDIS_REPLY_STATUS &&
strcasecmp(reply->str,"pong") == 0)
freeReplyObject(reply);
@@ -65,7 +65,7 @@ static void test_blocking_connection() {
test("Is a able to send commands verbatim: ");
reply = redisCommand(c,"SET foo bar");
- test_cond (reply->type == REDIS_REPLY_STRING &&
+ test_cond (reply->type == REDIS_REPLY_STATUS &&
strcasecmp(reply->str,"ok") == 0)
freeReplyObject(reply);
@@ -122,7 +122,7 @@ static void test_blocking_connection() {
reply->element[0]->elements == 2 &&
!memcmp(reply->element[0]->element[0]->str,"bar",3) &&
!memcmp(reply->element[0]->element[1]->str,"foo",3) &&
- reply->element[1]->type == REDIS_REPLY_STRING &&
+ reply->element[1]->type == REDIS_REPLY_STATUS &&
strcasecmp(reply->element[1]->str,"pong") == 0);
freeReplyObject(reply);
}