From 4e29569686c14b682f067aaeee93a1cbd7fbd814 Mon Sep 17 00:00:00 2001 From: Yakiv Huryk Date: Wed, 6 Dec 2023 14:57:39 +0000 Subject: [PATCH] [tests] fix binary_data_get unit test fix incorrect sizeof() value Signed-off-by: Yakiv Huryk --- tests/redis_ut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/redis_ut.cpp b/tests/redis_ut.cpp index c8532ff55..94684d7de 100644 --- a/tests/redis_ut.cpp +++ b/tests/redis_ut.cpp @@ -851,8 +851,8 @@ TEST(Table, binary_data_get) DBConnector db("TEST_DB", 0, true); Table table(&db, "binary_data"); - const char* bindata1 = "\x11\x00\x22\x33\x44"; - const char* bindata2 = "\x11\x22\x33\x00\x44"; + const char bindata1[] = "\x11\x00\x22\x33\x44"; + const char bindata2[] = "\x11\x22\x33\x00\x44"; auto v1 = std::string(bindata1, sizeof(bindata1)); auto v2 = std::string(bindata2, sizeof(bindata2)); vector values_set = {