Skip to content

Commit

Permalink
"fix a test" by increasing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jun 10, 2024
1 parent 460f4c0 commit 8e3edd4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/react/hooks/__tests__/useSuspenseQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ import {
useTrackRenders,
} from "../../../testing/internal";

const IS_REACT_19 = React.version.startsWith("19");

type RenderSuspenseHookOptions<Props, TSerializedCache = {}> = Omit<
RenderHookOptions<Props>,
"wrapper"
Expand Down Expand Up @@ -9593,8 +9591,6 @@ describe("useSuspenseQuery", () => {

await act(() => user.type(input, "ab"));

// this currently times out in React 19
if (IS_REACT_19) return;
await waitFor(() => {
expect(screen.getByTestId("result")).toHaveTextContent("ab");
});
Expand All @@ -9616,7 +9612,7 @@ describe("useSuspenseQuery", () => {
await waitFor(() => {
expect(screen.getByTestId("result")).toHaveTextContent("abc");
});
});
}, 10000);

it("works with startTransition to change variables", async () => {
type Variables = {
Expand Down

0 comments on commit 8e3edd4

Please sign in to comment.