diff --git a/src/testing/react/__tests__/MockedProvider.test.tsx b/src/testing/react/__tests__/MockedProvider.test.tsx index 1d666f9d676..b1676890bf7 100644 --- a/src/testing/react/__tests__/MockedProvider.test.tsx +++ b/src/testing/react/__tests__/MockedProvider.test.tsx @@ -719,10 +719,10 @@ describe("General use", () => { ); render(, { wrapper: Wrapper }); - await waitForLoaded(); - await refetch(); - await waitForLoaded(); - await refetch(); + for (let i = 0; i < 100; i++) { + await waitForLoaded(); + await refetch(); + } await waitForLoaded(); });