Skip to content

Commit

Permalink
Try to make test less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Oct 15, 2023
1 parent 0e85626 commit 288b046
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ describe('SNS PermissionsConsumerMultiSchema', () => {
messageType: 'remove',
})

await waitAndRetry(() => {
return consumer.addCounter === 1 && consumer.removeCounter === 2
})
await waitAndRetry(
() => {
return consumer.addCounter === 1 && consumer.removeCounter === 2
},
// Removing this makes test flaky
30,
20,
)

expect(consumer.addBarrierCounter).toBe(3)
expect(consumer.addCounter).toBe(1)
Expand Down

0 comments on commit 288b046

Please sign in to comment.