Skip to content

Commit

Permalink
ugh bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 21, 2024
1 parent b7f586a commit fa55f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/hash_table_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ static int s_test_hash_churn_fn(struct aws_allocator *allocator, void *ctx) {
int was_present;
err_code = aws_hash_table_remove(&hash_table, e->key, NULL, &was_present);
ASSERT_SUCCESS(err_code, "Unexpected failure removing element");
if (i == 0 && entries[i - 1].key == e->key && entries[i - 1].is_removed) {
if (i != 0 && entries[i - 1].key == e->key && entries[i - 1].is_removed) {
ASSERT_INT_EQUALS(0, was_present, "Expected item to be missing");
} else {
ASSERT_INT_EQUALS(1, was_present, "Expected item to be present");
Expand Down

0 comments on commit fa55f97

Please sign in to comment.