Change expression to look for at least one limit exceeded (#10173)
This is an attempt to fix some of the issues with the cluster mode tests we are seeing in the daily run. The test is trying to incrementally adds a bunch of publish messages, expecting that eventually one of them will overflow. The tests stops one of the processes, so it expects that just that one Redis node will overflow. I think the test is flaky because under certain circumstances multiple links are getting disconnected, not just the one that is stalled.
This commit is contained in:
parent
4491ee1805
commit
f6b76e50ad
@ -91,7 +91,7 @@ test "Disconnect link when send buffer limit reached" {
|
||||
[catch {incr i} e] == 0 &&
|
||||
[catch {$primary1 publish channel [prepare_value [expr 128*1024]]} e] == 0 &&
|
||||
[catch {after 500} e] == 0 &&
|
||||
[get_info_field [$primary1 cluster info] total_cluster_links_buffer_limit_exceeded] eq 1
|
||||
[get_info_field [$primary1 cluster info] total_cluster_links_buffer_limit_exceeded] >= 1
|
||||
} else {
|
||||
fail "Cluster link not freed as expected"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user