Unverified Commit 4c72a09b authored by Moti Cohen's avatar Moti Cohen Committed by GitHub
Browse files

Fix sentinel acl change test. Timing issue. (#10868)


Co-authored-by: default avatarmoticless <moticless@github.com>
parent f2387daa
...@@ -126,7 +126,7 @@ test "Sentinels (re)connection following master ACL change" { ...@@ -126,7 +126,7 @@ test "Sentinels (re)connection following master ACL change" {
wait_for_condition 100 50 { wait_for_condition 100 50 {
[string match "*disconnected*" [dict get [S $sent2re SENTINEL MASTER mymaster] flags]] != 0 [string match "*disconnected*" [dict get [S $sent2re SENTINEL MASTER mymaster] flags]] != 0
} else { } else {
fail "Expected: Sentinel to be disconnected from master due to wrong password" fail "Expected: Restarted sentinel to be disconnected from master due to obsolete password"
} }
# Verify sentinel with updated password managed to connect (wait for sentinelTimer to reconnect) # Verify sentinel with updated password managed to connect (wait for sentinelTimer to reconnect)
...@@ -137,8 +137,10 @@ test "Sentinels (re)connection following master ACL change" { ...@@ -137,8 +137,10 @@ test "Sentinels (re)connection following master ACL change" {
} }
# Verify sentinel untouched gets failed to connect master # Verify sentinel untouched gets failed to connect master
if {![string match "*disconnected*" [dict get [S $sent2un SENTINEL MASTER mymaster] flags]]} { wait_for_condition 100 50 {
fail "Expected: Sentinel to be disconnected from master due to wrong password" [string match "*disconnected*" [dict get [S $sent2un SENTINEL MASTER mymaster] flags]] != 0
} else {
fail "Expected: Sentinel to be disconnected from master due to obsolete password"
} }
# Now update all sentinels with new password # Now update all sentinels with new password
......
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