Skip to content

Commit

Permalink
advance timers by 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Oct 17, 2022
1 parent 9b3032b commit 0fd3182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Filtering and showing warnings', () => {
const request = { body: {} };
beforeEach(() => {
jest.resetAllMocks();
jest.advanceTimersByTime(10000);
jest.advanceTimersByTime(30000);
setNotifications(notifications);
(notifications.toasts.addWarning as jest.Mock).mockReset();
(extract.extractWarnings as jest.Mock).mockImplementation(() => warnings);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/search_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Search service', () => {
mockCoreSetup = coreMock.createSetup();
mockCoreStart = coreMock.createStart();
searchService = new SearchService(initializerContext);
jest.advanceTimersByTime(10000);
jest.advanceTimersByTime(30000);
});

describe('setup()', () => {
Expand Down

0 comments on commit 0fd3182

Please sign in to comment.