Stevent-fei commented on code in PR #32:
URL: https://github.com/apache/rocketmq-e2e/pull/32#discussion_r1211409240
##########
golang/utils/CheckUtils.go:
##########
@@ -75,3 +76,16 @@ func CheckFIFOMsgsWithMsgId(t *testing.T, sendMsgsCollector
*SendMsgsCollector,
func CheckTransactionMsgsWithMsgId(t *testing.T, sendMsgsCollector
*SendMsgsCollector, recvMsgsCollector *RecvMsgsCollector) {
CheckMsgsWithMsgId(t, sendMsgsCollector, recvMsgsCollector)
}
+
+func CheckMsgsWithMsgBody(t *testing.T, sendMsgsCollector *SendMsgsCollector,
recvMsgsCollector *RecvMsgsCollector) {
+ var sendMsg string
+ var recvMsg string
+ for _, sed := range sendMsgsCollector.SendMsgs {
+ sendMsg = string(sed.Body)
+ }
+ for _, recv := range recvMsgsCollector.RecvMsgViews {
+ recvMsg = string(recv.GetBody())
+ }
+
+ assert.Equal(t, sendMsg, recvMsg)
Review Comment:
check这里后面还会完善
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]