From 7b40dbacdf96e302fec482588bf20a535733ab2b Mon Sep 17 00:00:00 2001 From: Stav-Levi <45394834+StavRLevi@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:07:30 +0300 Subject: [PATCH] Fix timing issue for correct replication disconnection time counters behavior test (#14221) Co-authored-by: debing.sun --- tests/integration/replication.tcl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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} } } }