Skip to content

Commit

Permalink
unit test flake
Browse files Browse the repository at this point in the history
  • Loading branch information
pnaik1 committed Mar 13, 2024
1 parent 23fe4d3 commit 22ee7bf
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 22ee7bf

Please sign in to comment.