Jest spec taking too long in spec/frontend/notes/components/discussion_notes_spec.js
Per https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/209215299
Summary of all failing tests
FAIL spec/frontend/notes/components/discussion_notes_spec.js (7.974s)
● DiscussionNotes › rendering › renders an element for each note in the discussion
Test took too long (302ms > 300ms)!
19 | const elapsedTimeInMs = Date.now() - testStartTime;
20 | if (elapsedTimeInMs > testTimeoutInMs) {
> 21 | throw new Error(`Test took too long (${elapsedTimeInMs}ms > ${testTimeoutInMs}ms)!`);
| ^
22 | }
23 | });
24 | };
at Object.<anonymous> (spec/frontend/helpers/timeout.js:21:13)
Test Suites: 1 failed, 136 passed, 137 total
Tests: 1 failed, 1357 passed, 1358 total
Snapshots: 7 passed, 7 total
Time: 171.286s
Ran all test suites.
error Command failed with exit code 1.
It feels like this test is right on the threshold, and sometimes just creeps above it depending on random factors.
The spec was recently introduced in 911701ae by @pgascouvaillancourt