Skip to content

Commit

Permalink
Fix consumer test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevon committed May 2, 2022
1 parent fec70a8 commit 5283c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumer/__tests__/consumeMessages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ describe('Consumer', () => {
expect(messagesConsumed.map(m => m.message.offset)).toEqual(messages.map((_, i) => `${i}`))
const response = await admin.fetchOffsets({ groupId, topics: [topicName] })
const { partitions } = response.find(({ topic }) => topic === topicName)
const partition = partitions.find(({ partition }) => partition === '0')
const partition = partitions.find(({ partition }) => partition === 0)
expect(partition.offset).toEqual('100') // check if offsets were committed
})

Expand Down

0 comments on commit 5283c32

Please sign in to comment.