Skip to content

Commit

Permalink
Stop consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Nov 20, 2023
1 parent 3281dfd commit ad281cb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe('SqsPermissionsConsumerMultiSchema', () => {

expect(newConsumer.addCounter).toBe(1)
expect(barrierCounter).toBe(2)
await newConsumer.close()
})

it('throws an error on first try', async () => {
Expand All @@ -166,11 +167,12 @@ describe('SqsPermissionsConsumerMultiSchema', () => {
})

await waitAndRetry(() => {
return newConsumer.addCounter === 1
return newConsumer.addCounter > 0
})

expect(newConsumer.addCounter).toBe(1)
expect(barrierCounter).toBe(2)
await newConsumer.close()
})
})

Expand Down

0 comments on commit ad281cb

Please sign in to comment.