From 73b9bf64985cc5bb27c3610fdf5494fa666675a5 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 23 Feb 2022 15:13:00 +0800 Subject: [PATCH] [td-13039] add unit test. --- source/libs/executor/test/lhashTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/executor/test/lhashTests.cpp b/source/libs/executor/test/lhashTests.cpp index be847d2959..11fc38a37d 100644 --- a/source/libs/executor/test/lhashTests.cpp +++ b/source/libs/executor/test/lhashTests.cpp @@ -31,13 +31,13 @@ TEST(testCase, linear_hash_Tests) { _hash_fn_t fn = taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT); #if 1 SLHashObj* pHashObj = tHashInit(100, 64 + 8, fn, 4); - for(int32_t i = 0; i < 5000; ++i) { + for(int32_t i = 0; i < 500000; ++i) { tHashPut(pHashObj, &i, sizeof(i), &i, sizeof(i)); } tHashPrint(pHashObj, LINEAR_HASH_STATIS); - for(int32_t i = 0; i < 100; ++i) { + for(int32_t i = 0; i < 10000; ++i) { char* v = tHashGet(pHashObj, &i, sizeof(i)); if (v != NULL) { // printf("find value: %d, key:%d\n", *(int32_t*) v, i); -- GitLab