Skip to content

Commit

Permalink
[REFACTOR] Delete empty key if exists before execute test logic on it
Browse files Browse the repository at this point in the history
  • Loading branch information
aallali committed Jun 9, 2024
1 parent 10586b3 commit 71e1e84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions safina_db/tests/store_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ mod tests {
value: String::from("value11-with-empty-key")
};
let mut store = TEST_STORE.lock().unwrap();
store.delete(&test_data.key);
store.insert(&test_data.key, &test_data.value).unwrap();
store.delete(&test_data.key);
let result = store.get(&test_data.key);
Expand Down

0 comments on commit 71e1e84

Please sign in to comment.