diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/simtest/remakes.rs | 11 |
1 files changed, 8 insertions, 3 deletions
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. |
