diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl index 912174347..5c15a0ca2 100644 --- a/tests/integration/replication.tcl +++ b/tests/integration/replication.tcl @@ -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} } } }