geniusjoe commented on code in PR #1392:
URL: https://github.com/apache/pulsar-client-go/pull/1392#discussion_r2257577576


##########
pulsar/consumer_test.go:
##########
@@ -1623,10 +1626,18 @@ func DLQWithProducerOptions(t *testing.T, prodOpt 
*ProducerOptions) {
                assert.True(t, regex.MatchString(msg.ProducerName()))
 
                // check original messageId
+               assert.NotEmpty(t, msg.Properties()[SysPropertyOriginMessageID])
                assert.NotEmpty(t, msg.Properties()[PropertyOriginMessageID])
 
                // check original topic
-               assert.NotEmpty(t, msg.Properties()[SysPropertyRealTopic])
+               assert.Contains(t, msg.Properties()[SysPropertyRealTopic], 
topic)
+
+               // check original key
+               assert.NotEmpty(t, msg.Key())
+               assert.NotEmpty(t, msg.OrderingKey())
+
+               // check original event time
+               assert.NotEqual(t, 0, msg.EventTime())

Review Comment:
   Thanks for your reply. I checked these values in test cases.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to