tests: the stopped reachability query idles past the Stop, so only the Stop ends it

This commit is contained in:
Matthew Jackson
2026-10-01 16:53:58 -07:00
parent 940bb215ab
commit 49cf396c07
+2 -1
View File
@@ -2675,7 +2675,8 @@ mod tests {
// A Stop records nothing, then or later: the late worker result reaches no caller.
let host = "kt8c.test";
let addr = stub_server(Stub::NeverAnswer);
let src = source_via(host, T_IDLE, move || Ok(vec![addr]));
// An idle timeout far past the Stop, so only the Stop can end the query.
let src = source_via(host, Duration::from_secs(30), move || Ok(vec![addr]));
let (out, _) = query_cancelled_after(&src, &ctx_with_mkb(0), Duration::from_millis(100));
assert_eq!(
out.expect_err("stopped").code(),