Skip to content

Commit a20bb89

Browse files
committed
test(browser): loosen the never-quiet click bound for a slow runner
The old behavior cost at least 3.15 s a click; the new one took 2.2 s on the macOS runner, so the bound is 2.9 s, between the two.
1 parent 178ae3e commit a20bb89

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎crates/botloftd/tests/browser.rs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,11 @@ async fn a_page_that_never_goes_quiet_does_not_cost_three_seconds_a_click() {
309309
.await
310310
.expect("click");
311311
// It used to wait the whole 3 s for a network that never stops (spec
312-
// 21.3); a click now settles in under a second, with room for a slow
313-
// machine.
312+
// 21.3), so never less than 3.15 s; a click now settles in under a
313+
// second on a quiet machine (0.78 s measured) and took 2.2 s on the
314+
// slow macOS runner, so the bound sits between the two.
314315
assert!(
315-
started.elapsed() < Duration::from_millis(2000),
316+
started.elapsed() < Duration::from_millis(2900),
316317
"{:?}",
317318
started.elapsed()
318319
);

0 commit comments

Comments
 (0)