Skip to content

Commit

Permalink
add some delay to possibly fix some flake in a useLazyQuery test
Browse files Browse the repository at this point in the history
  • Loading branch information
brainkim committed Aug 16, 2021
1 parent 3d2a138 commit 87f00e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useLazyQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ describe('useLazyQuery Hook', () => {
{
request: { query },
result: { data: { hello: "world 1" } },
delay: 10,
},
{
request: { query },
Expand Down Expand Up @@ -362,7 +363,6 @@ describe('useLazyQuery Hook', () => {

await waitForNextUpdate();
expect(result.current[1].loading).toBe(true);
expect(result.current[1].data).toBe(undefined);

await waitForNextUpdate();
expect(result.current[1].loading).toBe(false);
Expand Down

0 comments on commit 87f00e9

Please sign in to comment.