diff --git a/public/app/features/search/components/DashboardSearch.test.tsx b/public/app/features/search/components/DashboardSearch.test.tsx index 9130d0976bf..5941f160e8d 100644 --- a/public/app/features/search/components/DashboardSearch.test.tsx +++ b/public/app/features/search/components/DashboardSearch.test.tsx @@ -28,7 +28,7 @@ const setup = (testProps?: Partial) => { ...testProps, }; render(); - jest.runAllTimers(); + jest.runOnlyPendingTimers(); }; /** @@ -63,7 +63,7 @@ describe('DashboardSearch', () => { const input = await screen.findByPlaceholderText('Search dashboards by name'); await act((async () => { await fireEvent.input(input, { target: { value: 'Test' } }); - jest.runAllTimers(); + jest.runOnlyPendingTimers(); }) as any); expect(mockSearch).toHaveBeenCalledWith({