diff --git a/packages/sns/test/consumers/SnsSqsPermissionsConsumerMultiSchema.spec.ts b/packages/sns/test/consumers/SnsSqsPermissionsConsumerMultiSchema.spec.ts index 75dbfb95..c345e13a 100644 --- a/packages/sns/test/consumers/SnsSqsPermissionsConsumerMultiSchema.spec.ts +++ b/packages/sns/test/consumers/SnsSqsPermissionsConsumerMultiSchema.spec.ts @@ -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)