Skip to content

Commit

Permalink
[tests] fix binary_data_get unit test (#841)
Browse files Browse the repository at this point in the history
fix incorrect sizeof() value

Signed-off-by: Yakiv Huryk <[email protected]>
Co-authored-by: Prince Sunny <[email protected]>
  • Loading branch information
Yakiv-Huryk and prsunny authored Jan 10, 2024
1 parent b2480ad commit 16bc247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/redis_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<FieldValueTuple> values_set = {
Expand Down

0 comments on commit 16bc247

Please sign in to comment.