Skip to content

Commit

Permalink
Fix confirm test
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed May 18, 2024
1 parent dbee65e commit 1fe8d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func TestConfirmConsumer(t *testing.T) {
// as it could happen that the event can be sent before the consumer starts

for msg, err := range c.Get(ctx, bus.WithFromOldest(), bus.WithSubject("a.b.c"), bus.WithManualAck()) {
atomic.AddInt64(&hit, 1)

assert.NoError(t, err)
assert.NotNil(t, msg)
Expand All @@ -61,7 +62,6 @@ func TestConfirmConsumer(t *testing.T) {
assert.Equal(t, "a.b.c", evt.Subject)
assert.Equal(t, `"hello"`, string(evt.Data))

atomic.AddInt64(&hit, 1)
err = msg.Ack(ctx)
assert.NoError(t, err)

Expand Down

0 comments on commit 1fe8d73

Please sign in to comment.