diff options
| author | tv <tv@krebsco.de> | 2026-11-06 04:35:31 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-06 04:35:31 +0100 |
| commit | 47c021a3e73ba8e28942b6cee489951d1c19f53b (patch) | |
| tree | beea7cff00e445513100cf6d4e09cb71f1e764d2 /src | |
| parent | 9d6d7913ce8bf76717f75d7d4845a61f4889da80 (diff) | |
clock skew wait longer
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. |
