mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 14:31:59 +08:00
fix: fixed flaky pipelineSearchSection test case (#5189)
This commit is contained in:
parent
a681f6f397
commit
1f4a8b9834
@ -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');
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user