Skip to content

Commit

Permalink
add task delay for some unknown reason to make this test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaskasky committed Dec 15, 2024
1 parent e0e0931 commit 5b6c8ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/vanilla/store.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ it('resolves dependencies reliably after a delay (#2192)', async () => {
await waitFor(() => assert(resolve.length === 1))

resolve[0]!()
await new Promise((r) => setTimeout(r))
const increment = (c: number) => c + 1
store.set(countAtom, increment)
store.set(countAtom, increment)
Expand Down

0 comments on commit 5b6c8ee

Please sign in to comment.