Skip to content

Commit

Permalink
Fix overflow test
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Aug 23, 2024
1 parent 549c1d0 commit ad081d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetstream/test/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestConsumerOverflow(t *testing.T) {
}

// We are below overflow, so we should not get any moessages.
msgs, err := c.Fetch(10, jetstream.FetchMinPending(110), jetstream.FetchMaxWait(1*time.Second))
msgs, err := c.Fetch(10, jetstream.FetchMinPending(110), jetstream.FetchMaxWait(1*time.Second), jetstream.FetchGroup("A"))
count := 0
for msg := range msgs.Messages() {
msg.Ack()
Expand All @@ -181,7 +181,7 @@ func TestConsumerOverflow(t *testing.T) {
_, err = js.Publish(ctx, "FOO.bar", []byte("hello"))
}

msgs, err = c.Fetch(10, jetstream.FetchMinPending(110))
msgs, err = c.Fetch(10, jetstream.FetchMinPending(110), jetstream.FetchGroup("A"))
count = 0
for msg := range msgs.Messages() {
msg.Ack()
Expand Down

0 comments on commit ad081d9

Please sign in to comment.