Skip to content

Commit

Permalink
Merge branch 'nondurable_consumer' into nondurable_consumer_0_10_0
Browse files Browse the repository at this point in the history
  • Loading branch information
dinghram committed Apr 3, 2023
2 parents 06b7c26 + 179e020 commit a80d890
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pulsar/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4095,7 +4095,7 @@ func TestConsumerNonDurable(t *testing.T) {
Topic: topicName,
SubscriptionName: "sub-1",
Type: Shared,
SubscrptionMode: NonDurable,
SubscriptionMode: NonDurable,
})
assert.Nil(t, err)

Expand Down Expand Up @@ -4129,7 +4129,7 @@ func TestConsumerNonDurable(t *testing.T) {
Topic: topicName,
SubscriptionName: "sub-1",
Type: Shared,
SubscrptionMode: NonDurable,
SubscriptionMode: NonDurable,
})
assert.Nil(t, err)
defer consumer.Close()
Expand All @@ -4140,7 +4140,7 @@ func TestConsumerNonDurable(t *testing.T) {
t.Fatal(err)
}

msg, err := consumer.Receive(ctx)
msg, err = consumer.Receive(ctx)
assert.Nil(t, err)
assert.Equal(t, fmt.Sprintf("msg-content-%d", i), string(msg.Payload()))
consumer.Ack(msg)
Expand Down

0 comments on commit a80d890

Please sign in to comment.