Skip to content

Commit b3fdc80

Browse files
Increase timeout of the test and of the waitFor for the test to pass
1 parent 0d1d9c4 commit b3fdc80

File tree

1 file changed

+10
-5
lines changed
  • x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal

1 file changed

+10
-5
lines changed

x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal/index.test.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,15 @@ describe('OpenTimelineModal', () => {
6565
</ThemeProvider>
6666
);
6767

68-
await waitFor(() => {
69-
wrapper.update();
68+
await waitFor(
69+
() => {
70+
wrapper.update();
7071

71-
expect(wrapper.find('div[data-test-subj="open-timeline-modal"].euiModal').length).toEqual(1);
72-
});
73-
});
72+
expect(wrapper.find('div[data-test-subj="open-timeline-modal"].euiModal').length).toEqual(
73+
1
74+
);
75+
},
76+
{ timeout: 10000 }
77+
);
78+
}, 20000);
7479
});

0 commit comments

Comments
 (0)