mirror of
https://github.com/jlengrand/signoz.git
synced 2026-03-10 08:41:20 +00:00
fix: fixed flaky pipelineSearchSection test case (#5189)
This commit is contained in:
@@ -42,9 +42,11 @@ describe('PipelinePage container test', () => {
|
||||
jest.advanceTimersByTime(299);
|
||||
expect(setPipelineValue).not.toHaveBeenCalled();
|
||||
|
||||
// Wait for the debounce delay to pass
|
||||
// Fast-forward time by 1ms to reach the debounce delay
|
||||
jest.advanceTimersByTime(1);
|
||||
|
||||
// Wait for the debounce delay to pass and expect the callback to be called
|
||||
await waitFor(() => {
|
||||
// Expect the callback to be called after debounce delay
|
||||
expect(setPipelineValue).toHaveBeenCalledWith('sample_pipeline');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user