summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-15 20:17:31 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-15 20:17:31 +0100
commit0b27639e0974df09e631cafebc46e43cf1a2f018 (patch)
treea80a28d7a2c04637f7b0808e45bd37f4e1a20c56
parenta5acb58948e4f5f63072f7a9fe1c418dd0deb444 (diff)
Don't print when testing can continue
-rw-r--r--test.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test.c b/test.c
index 45b07fb..8693e9c 100644
--- a/test.c
+++ b/test.c
@@ -91,12 +91,9 @@ static void test_blocking_connection() {
/* Make sure the DB is emtpy */
reply = redisCommand(c,"DBSIZE");
- if (reply->type != REDIS_REPLY_INTEGER ||
- reply->integer != 0) {
- printf("Sorry DB 9 is not empty, test can not continue\n");
+ if (reply->type != REDIS_REPLY_INTEGER || reply->integer != 0) {
+ printf("Database #9 is not empty, test can not continue\n");
exit(1);
- } else {
- printf("DB 9 is empty... test can continue\n");
}
freeReplyObject(reply);