Skip to content

Commit

Permalink
Improve infinite reuse test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebakerckhof committed Sep 19, 2023
1 parent 182d9b8 commit bfb7300
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/testing/react/__tests__/MockedProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,10 @@ describe("General use", () => {
);

render(<Component username="mock_username" />, { wrapper: Wrapper });
await waitForLoaded();
await refetch();
await waitForLoaded();
await refetch();
for (let i = 0; i < 100; i++) {
await waitForLoaded();
await refetch();
}
await waitForLoaded();
});

Expand Down

0 comments on commit bfb7300

Please sign in to comment.