Skip to content

Commit

Permalink
Add a setTimeout to the watch events test
Browse files Browse the repository at this point in the history
  • Loading branch information
Perseus committed Nov 29, 2022
1 parent cea57c0 commit 708ce23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/lib/authzed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ describe('AuthZed Wrapper', () => {
],
});

await new Promise((resolve) => setTimeout(resolve, 2000));

expect(updates.length).toBeGreaterThan(0);
expect(updates[0].updates[0]).toMatchObject({
operation: RelationshipUpdateOperation.TOUCH,
Expand Down

0 comments on commit 708ce23

Please sign in to comment.