Skip to content

Commit 6572841

Browse files
authored
test(js): Increase timeout for ChartWidgetLoader test (#90740)
This flaked here https://sentry.sentry.io/issues/6580195034/?project=4857230&referrer=github-pr-bot - lets try bumping up the timeout
1 parent 24e1682 commit 6572841

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

static/app/components/charts/chartWidgetLoader-unmocked-imports.spec.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,14 @@ describe('ChartWidgetLoader - unmocked imports', () => {
282282
// We only need to check that the dynamic import completes for these tests as that means ChartWidgetLoader is able to load all widgets
283283
expect(screen.getByTestId('loading-placeholder')).toBeInTheDocument();
284284

285-
await waitFor(() => {
286-
expect(screen.queryByTestId('loading-placeholder')).not.toBeInTheDocument();
287-
});
285+
await waitFor(
286+
() => {
287+
expect(screen.queryByTestId('loading-placeholder')).not.toBeInTheDocument();
288+
},
289+
{
290+
timeout: 2000,
291+
}
292+
);
288293

289294
expect(TimeSeriesWidgetVisualization).toHaveBeenCalledWith(
290295
expect.objectContaining({

0 commit comments

Comments
 (0)