mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Fix timing issue for correct replication disconnection time counters behavior test (#14221)
Co-authored-by: debing.sun <debing.sun@redis.com>
This commit is contained in:
parent
0ac04bbd14
commit
7b40dbacdf
1 changed files with 2 additions and 3 deletions
|
|
@ -1726,10 +1726,9 @@ start_server {tags {"repl external:skip"}} {
|
|||
assert {$link_down_since > 0}
|
||||
assert {$total_disconnect_time > $link_down_since}
|
||||
|
||||
# total_disconnect_time did not change after reconnect to real master
|
||||
# total_disconnect_time_reconnect can be up to 5 seconds more than total_disconnect_time due to reconnection time
|
||||
set total_disconnect_time_reconnect [status $slave total_disconnect_time_sec]
|
||||
assert {$total_disconnect_time == $total_disconnect_time_reconnect}
|
||||
|
||||
assert {$total_disconnect_time_reconnect >= $total_disconnect_time && $total_disconnect_time_reconnect <= $total_disconnect_time + 5}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue