Skip to content

Commit

Permalink
Fix tests to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Apr 26, 2024
1 parent 70b2465 commit d4031f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestConsumerMaxWaitExceeded(t *testing.T) {
require.NoError(t, test.moveToVUCode())

// Consume a message in the VU function.
assert.NotPanics(t, func() {
assert.Panics(t, func() {
messages := test.module.Kafka.consume(reader, &ConsumeConfig{Limit: 1})
assert.Empty(t, messages)
})
Expand Down Expand Up @@ -231,7 +231,7 @@ func TestConsumerContextCancelled(t *testing.T) {
test.cancelContext()

// Consume a message in the VU function.
assert.NotPanics(t, func() {
assert.Panics(t, func() {
messages := test.module.Kafka.consume(reader, &ConsumeConfig{Limit: 1})
assert.Empty(t, messages)
})
Expand Down

0 comments on commit d4031f7

Please sign in to comment.