You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcTestMessageKey(t*testing.T) {
msg:=&Message{}
expected:="testKey"msg.WithKeys([]string{expected})
actual:=msg.GetKeys()
ifactual!=expected {
t.Fatalf("get message key error: expected is '%s', actual is '%s'", expected, actual)
}
}
Expect msg.GetKeys() returns the same key as what msg.WithKeys() put. msg.WithKeys() append an unexpected key separator ' ' to the message key instead.
The test outputs get message key error: expected is 'testKey', actual is 'testKey '
Please tell us about your environment:
What is your OS?
What is your client version?
What is your RocketMQ version?
master code of rocketmq-client-go
The text was updated successfully, but these errors were encountered:
gaofeihang
added a commit
to gaofeihang/rocketmq-client-go
that referenced
this issue
Apr 7, 2023
BUG REPORT
Please describe the issue you observed:
What did you do (The steps to reproduce)?
What did you expect to see?
What did you see instead?
Run the test below
Expect
msg.GetKeys()
returns the same key as whatmsg.WithKeys()
put.msg.WithKeys()
append an unexpected key separator ' ' to the message key instead.The test outputs
get message key error: expected is 'testKey', actual is 'testKey '
Please tell us about your environment:
What is your OS?
What is your client version?
What is your RocketMQ version?
master code of rocketmq-client-go
The text was updated successfully, but these errors were encountered: