Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

test: deflake windows metadata ttl expiry assertion (#4050)

JJ Liebig5c0ecc6aa5fe
diff --git a/src/terminal/metadata.rs b/src/terminal/metadata.rs
index 91b1d582e..e82a5a3af 100644
--- a/src/terminal/metadata.rs
+++ b/src/terminal/metadata.rs
@@ -861,7 +861,9 @@ mod tests {
clear_title: false,
clear_display_agent: false,
clear_state_labels: false,
- ttl: Some(Duration::from_millis(1)),
+ // Expiry is forced with the captured deadline below; keep the
+ // no-extension assertion independent of wall-clock scheduling.
+ ttl: Some(Duration::from_secs(60)),
seq: None,
});
let old_deadline = terminal.next_agent_metadata_expiry().unwrap();