Skip to content

Commit

Permalink
Merge pull request #2595 from pnaik1/hook
Browse files Browse the repository at this point in the history
unit test flake
  • Loading branch information
openshift-merge-bot[bot] authored Mar 13, 2024
2 parents 23fe4d3 + 22ee7bf commit e63874e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/__tests__/unit/testUtils/hooks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('hook test utils', () => {
// unmount to test waiting for an update that will never happen
renderResult.unmount();

await expect(renderResult.waitForNextUpdate({ timeout: 50, interval: 10 })).rejects.toThrow();
await expect(renderResult.waitForNextUpdate({ timeout: 500, interval: 10 })).rejects.toThrow();

expect(renderResult).hookToHaveUpdateCount(1);
});
Expand All @@ -105,7 +105,7 @@ describe('hook test utils', () => {
const renderResult = renderHook(() => useSayHelloDelayed('', 20));

await expect(
renderResult.waitForNextUpdate({ timeout: 50, interval: 10 }),
renderResult.waitForNextUpdate({ timeout: 500, interval: 10 }),
).resolves.not.toThrow();

expect(renderResult).hookToHaveUpdateCount(2);
Expand Down

0 comments on commit e63874e

Please sign in to comment.