Skip to content

Commit

Permalink
Fix unit test code
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Apr 23, 2024
1 parent 61f32af commit 73be810
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mq/pulsar/puslar_test.go → mq/pulsar/pulsar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/milvus-io/birdwatcher/mq/ifc"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -44,7 +45,9 @@ func TestConsumer(t *testing.T) {
}
}

c, err := NewPulsarConsumer(address, topic, "gid")
c, err := NewPulsarConsumer(address, topic, "gid", ifc.MqOption{
SubscriptionInitPos: ifc.SubscriptionPositionLatest,
})
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 73be810

Please sign in to comment.