Skip to content

Commit

Permalink
Log failing benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosv committed Sep 23, 2024
1 parent 6bb24e5 commit 5e4c228
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/client_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,10 @@ static void test_throughput(struct config config) {
valkeyAppendCommand(c, "LRANGE mylist 0 499");
t1 = usec();
for (i = 0; i < num; i++) {
assert(valkeyGetReply(c, (void *)&replies[i]) == VALKEY_OK);
int res = valkeyGetReply(c, (void *)&replies[i]);
if (res != VALKEY_OK)
printf("\ti=%d res=%d\n", i, res);
assert(res == VALKEY_OK);
assert(replies[i] != NULL && replies[i]->type == VALKEY_REPLY_ARRAY);
assert(replies[i] != NULL && replies[i]->elements == 500);
}
Expand Down

0 comments on commit 5e4c228

Please sign in to comment.