fix a test timing issue when running the test over valgrind
This commit is contained in:
parent
6b91a11e3e
commit
0717e3aa16
@ -247,6 +247,7 @@ start_server {tags {"other"}} {
|
||||
} {0 0}
|
||||
|
||||
test {Perform a final SAVE to leave a clean DB on disk} {
|
||||
waitForBgsave r
|
||||
r save
|
||||
} {OK}
|
||||
}
|
||||
|
@ -148,8 +148,11 @@ start_server {
|
||||
test "BLPOP with variadic LPUSH" {
|
||||
set rd [redis_deferring_client]
|
||||
r del blist target
|
||||
if {$::valgrind} {after 100}
|
||||
$rd blpop blist 0
|
||||
if {$::valgrind} {after 100}
|
||||
assert_equal 2 [r lpush blist foo bar]
|
||||
if {$::valgrind} {after 100}
|
||||
assert_equal {blist foo} [$rd read]
|
||||
assert_equal bar [lindex [r lrange blist 0 -1] 0]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user