Unverified Commit 37559ca7 authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

Fix race condition in lazy free test (#9682)

The first test exited before all the memory was reclaimed, so when the second test
sampled used_memory, it was too early.
parent 665e4284
......@@ -19,6 +19,13 @@ start_server {tags {"lazyfree"}} {
}
test "FLUSHDB ASYNC can reclaim memory in background" {
# make the previous test is really done before sampling used_memory
wait_for_condition 50 100 {
[s lazyfree_pending_objects] == 0
} else {
fail "lazyfree isn't done"
}
set orig_mem [s used_memory]
set args {}
for {set i 0} {$i < 100000} {incr i} {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment