We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6fa71 commit bf7bf23Copy full SHA for bf7bf23
src/test/repl/repl.spec.ts
@@ -168,7 +168,10 @@ test.suite('top level await', (_test) => {
168
expect(elapsedTimeString).toMatch(/^\d+$/);
169
const elapsedTime = Number(elapsedTimeString);
170
expect(elapsedTime).toBeGreaterThanOrEqual(awaitMs - 50);
171
- expect(elapsedTime).toBeLessThanOrEqual(awaitMs + 100);
+ // When CI is taxed, the time may be *much* greater than expected.
172
+ // I can't think of a case where the time being *too high* is a bug
173
+ // that this test can catch. So I've made this check very loose.
174
+ expect(elapsedTime).toBeLessThanOrEqual(awaitMs + 10e3);
175
}
176
);
177
0 commit comments