mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
test(connlib): add comment explaining position of handle_timeout (#6012)
Feedback from #5948.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user