From 5e4c2288420763194ea591934fef08056fb9b47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Mon, 23 Sep 2024 09:30:51 +0200 Subject: [PATCH] Log failing benchmark test --- tests/client_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/client_test.c b/tests/client_test.c index 49caab5..d6d92c0 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -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); }