Skip to content

Commit

Permalink
Trigger buckets reallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah committed May 16, 2024
1 parent e23177f commit ead4a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test_sdb_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ bool test_insert_update_ex(void) {

for (size_t i = 0; i < 100; ++i) {
HtUUKv *tmp = NULL;
ht_uu_insert_ex(ht2, i, i + 200, &tmp);
ht_uu_insert_ex(ht2, 4 * i, i + 200, &tmp);
mu_assert_notnull(tmp, "KV is set after rehashing");
mu_assert_eq(tmp->value, i + 200, "KV is valid after rehashing");
}
Expand Down

0 comments on commit ead4a0a

Please sign in to comment.