From 47c021a3e73ba8e28942b6cee489951d1c19f53b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 04:35:31 +0100 Subject: clock skew wait longer --- src/simtest/remakes.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/simtest/remakes.rs') diff --git a/src/simtest/remakes.rs b/src/simtest/remakes.rs index 0b4ee53..b1a6b12 100644 --- a/src/simtest/remakes.rs +++ b/src/simtest/remakes.rs @@ -482,9 +482,14 @@ async fn abort_from_a_node_with_its_clock_off_is_refused() { // period below: by c's clock, the remake is expired once proposed. c.clock.set_offset_ms(60_000); let c_ref = &c; - sim.wait_until("c knows its clock is off", SOON, move || async move { - c_ref.clock_skew().await.off - }) + // Not `SOON`: the skew is judged on the peer worker's periodic checks, from PONGs of + // both peers measured over the real clock, which a busy test run delays. Waiting + // longer costs nothing when it comes sooner. + sim.wait_until( + "c knows its clock is off", + Duration::from_secs(60), + move || async move { c_ref.clock_skew().await.off }, + ) .await; // No vote reaches a, so its remake stays undecided for its settle period. -- cgit v1.3.1