Commit 73acd7d2 authored by Robert Knight's avatar Robert Knight

Increase timeout in test

`waitFor` has a short default timeout of 10ms and this test sometimes
failed in CI. Try increasing it to reduce flakiness. We might want to
consider changing the `waitFor` default in future, although we also want
to encourage test authors to avoid writing tests that frequently wait
for long (> 10ms) periods of time.
parent 61be5879
...@@ -25,7 +25,7 @@ describe('HypothesisInjector integration test', () => { ...@@ -25,7 +25,7 @@ describe('HypothesisInjector integration test', () => {
// Wait for `HypothesisInjector.injectClient` to finish injecting the client // Wait for `HypothesisInjector.injectClient` to finish injecting the client
// into the page. // into the page.
async function waitForInjectClient(frame) { async function waitForInjectClient(frame) {
await waitFor(() => getHypothesisScript(frame)); await waitFor(() => getHypothesisScript(frame), 100 /* timeout */);
} }
function getHypothesisScript(iframe) { function getHypothesisScript(iframe) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment