Fix timing issue in blockedclient test (#13071)
We can see that the past time here happens to be busy_time_limit, causing the test to fail: ``` [err]: RM_Call from blocked client in tests/unit/moduleapi/blockedclient.tcl Expected '50' to be more than '50' (context: type eval line 26 cmd {assert_morethan [expr [clock clicks -milliseconds]-$start] $busy_time_limit} proc ::test) ``` It is reasonable for them to be equal, so equal is added here. It should be noted that in the previous `Busy module command` test, we also used assert_morethan_equal, so this should have been missed at the time.
This commit is contained in:
parent
fc3a68d8fb
commit
4e3be944fc
@ -188,7 +188,7 @@ foreach call_type {nested normal} {
|
||||
|
||||
# make sure we get BUSY error, and that we didn't get here too early
|
||||
assert_error {*BUSY Slow module operation*} {r ping}
|
||||
assert_morethan [expr [clock clicks -milliseconds]-$start] $busy_time_limit
|
||||
assert_morethan_equal [expr [clock clicks -milliseconds]-$start] $busy_time_limit
|
||||
# abort the blocking operation
|
||||
r set_slow_bg_operation 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user