wangjia007bond commented on a change in pull request #168: 
[Issue-148][pulsar-client-go] add seek by messageID
URL: https://github.com/apache/pulsar-client-go/pull/168#discussion_r364552454
 
 

 ##########
 File path: pulsar/test_helper.go
 ##########
 @@ -164,3 +173,55 @@ func topicPath(topic string) string {
        }
        return tn.Name
 }
+
+func createClient(t *testing.T) Client {
+       client, err := NewClient(ClientOptions{
+               URL: serviceURL,
+       })
+       assert.Nil(t, err)
+
+       return client
+}
+
+func createConsumer(t *testing.T, client Client, options ConsumerOptions) 
Consumer {
+       consumer, err := client.Subscribe(options)
+       assert.Nil(t, err)
+
+       return consumer
+}
+
+func createProducer(t *testing.T, client Client, options ProducerOptions) 
Producer {
+       producer, err := client.CreateProducer(options)
+       assert.Nil(t, err)
+       assert.Equal(t, options.Topic, producer.Topic())
+
+       return producer
+}
+
+func send(t *testing.T, producer Producer, ctx context.Context, times int, 
message *ProducerMessage) {
 
 Review comment:
   OK.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to