Fix timing issue in rehash test (#10388)
`Expected '*table size: 4096*' to match '*table size: 8192*'` This test failed once on daily macOS, the reason is because the bgsave has not stopped after the kill and `after 200`. So there is a child process and no rehash triggered. This commit use `waitForBgsave` to wait for it to finish.
This commit is contained in:
parent
6740e1753d
commit
45d83fb2d4
@ -332,7 +332,8 @@ start_server {tags {"other external:skip"}} {
|
||||
# Hash table should not rehash
|
||||
assert_no_match "*table size: 8192*" [r debug HTSTATS 9]
|
||||
exec kill -9 [get_child_pid 0]
|
||||
after 200
|
||||
waitForBgsave r
|
||||
after 200 ;# waiting for serverCron
|
||||
|
||||
# Hash table should rehash since there is no child process,
|
||||
# size is power of two and over 4098, so it is 8192
|
||||
|
Loading…
x
Reference in New Issue
Block a user