test(connlib): add comment explaining position of handle_timeout (#6012)

Feedback from #5948.
This commit is contained in:
Thomas Eizinger
2024-07-25 03:45:57 +10:00
committed by GitHub
parent dae90d81e1
commit b2a374a78b

View File

@@ -350,6 +350,7 @@ impl TunnelTest {
let cut_off = self.flux_capacitor.now::<Instant>() + Duration::from_secs(10);
'outer: while self.flux_capacitor.now::<Instant>() < cut_off {
// `handle_timeout` needs to be called at the very top to advance state after we have made other modifications.
self.handle_timeout(&ref_state.global_dns_records, buffered_transmits);
let now = self.flux_capacitor.now();