Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jul 5, 2024
1 parent d196f1f commit 2a81caa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/consumer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ test('error event after connection', t => {
t.error(err)
consumer.consumer.emit('event.error', new Error('Test Error'))
})
consumer.on('error', t.ok)
consumer.stop()
consumer.on('error', () => {
t.ok()
consumer.stop()
})
})

test('empty message with data event', t => {
Expand All @@ -46,6 +48,8 @@ test('empty message with data event', t => {
t.error(err)
t.throws(() => consumer.consumer.emit('data'))
})
consumer.on('error', t.ok)
consumer.stop()
consumer.on('error', () => {
t.ok()
consumer.stop()
})
})

0 comments on commit 2a81caa

Please sign in to comment.