diff --git a/source/libs/tdb/test/tdbTest.cpp b/source/libs/tdb/test/tdbTest.cpp index 9da7ba0a5651a6c80d8a87c31b3e88a9df91c279..26db8be22a0361d1b20e81a55feb836631ff6c9e 100644 --- a/source/libs/tdb/test/tdbTest.cpp +++ b/source/libs/tdb/test/tdbTest.cpp @@ -16,14 +16,15 @@ TEST(tdb_test, simple_test) { GTEST_ASSERT_EQ(ret, 0); { // Insert some data - ret = tdbDbInsert(pDb, "key1", 4, "value1", 6); - GTEST_ASSERT_EQ(ret, 0); - - ret = tdbDbInsert(pDb, "key2", 4, "value1", 6); - GTEST_ASSERT_EQ(ret, 0); - - ret = tdbDbInsert(pDb, "key3", 4, "value1", 6); - GTEST_ASSERT_EQ(ret, 0); + char key[64]; + char val[64]; + + for (int i = 1; i <= 86; i++) { + sprintf(key, "key%d", i); + sprintf(key, "value%d", i); + ret = tdbDbInsert(pDb, key, strlen(key), val, strlen(val)); + GTEST_ASSERT_EQ(ret, 0); + } } ret = tdbDbDrop(pDb);