diff --git a/testcode/unitlruhash.c b/testcode/unitlruhash.c index 699ef72e4..a729cb2dc 100644 --- a/testcode/unitlruhash.c +++ b/testcode/unitlruhash.c @@ -245,7 +245,7 @@ test_short_table(struct lruhash* table) } /** number of hash test max */ -#define HASHTESTMAX 32 +#define HASHTESTMAX 25 /** test adding a random element */ static void diff --git a/testcode/unitslabhash.c b/testcode/unitslabhash.c index b3a0d7285..c407b95c0 100644 --- a/testcode/unitslabhash.c +++ b/testcode/unitslabhash.c @@ -377,12 +377,12 @@ void slabhash_test() /* also small in size so that reclaim has to be done quickly. */ struct slabhash* table; printf("slabhash test\n"); - table = slabhash_create(4, 2, 4096, + table = slabhash_create(4, 2, 5200, test_sizefunc, test_compfunc, test_delkey, test_deldata, NULL); test_short_table(table); test_long_table(table); slabhash_delete(table); - table = slabhash_create(4, 2, 4096, + table = slabhash_create(4, 2, 5200, test_sizefunc, test_compfunc, test_delkey, test_deldata, NULL); test_threaded_table(table); slabhash_delete(table);