Unverified Commit 4e3be944 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

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.
parent fc3a68d8
...@@ -188,7 +188,7 @@ foreach call_type {nested normal} { ...@@ -188,7 +188,7 @@ foreach call_type {nested normal} {
# make sure we get BUSY error, and that we didn't get here too early # make sure we get BUSY error, and that we didn't get here too early
assert_error {*BUSY Slow module operation*} {r ping} 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 # abort the blocking operation
r set_slow_bg_operation 0 r set_slow_bg_operation 0
......
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