summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2018-05-20 12:34:20 -0700
committermichael-grunder <michael.grunder@gmail.com>2018-05-20 12:34:20 -0700
commit33a36dc25b34bdc2abf02b5dbe21ec72712297b4 (patch)
tree7230c6d7a6a5b06d497676ad7c112d62683160bf
parent60f622b892a9ea0d0a4c31fb9c57f2a6f5c5ca61 (diff)
Don't overflow 32 bit machines in the tests!
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index 0685433..0f5bfe5 100644
--- a/test.c
+++ b/test.c
@@ -695,7 +695,7 @@ static void test_throughput(struct config config) {
replies = malloc(sizeof(redisReply*)*num);
t1 = usec();
for (i = 0; i < num; i++) {
- replies[i] = redisCommand(c, "INCRBY incrkey %lld", 10000000);
+ replies[i] = redisCommand(c, "INCRBY incrkey %d", 1000000);
assert(replies[i] != NULL && replies[i]->type == REDIS_REPLY_INTEGER);
}
t2 = usec();
@@ -733,7 +733,7 @@ static void test_throughput(struct config config) {
replies = malloc(sizeof(redisReply*)*num);
for (i = 0; i < num; i++)
- redisAppendCommand(c,"INCRBY incrkey %lld", 10000000);
+ redisAppendCommand(c,"INCRBY incrkey %d", 1000000);
t1 = usec();
for (i = 0; i < num; i++) {
assert(redisGetReply(c, (void*)&replies[i]) == REDIS_OK);