This is an automated email from the ASF dual-hosted git repository.
yuzhou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new fcb2486 [ISSUE
#3627]org.apache.rocketmq.broker.processor.SendMessageProcessorTest#testProcessRequest_WithMsgBack
failed (#3629)
fcb2486 is described below
commit fcb2486f1b77a5a83fd27a792e01fd6f83dabbcd
Author: panzhi <[email protected]>
AuthorDate: Sat Dec 11 16:31:57 2021 +0800
[ISSUE
#3627]org.apache.rocketmq.broker.processor.SendMessageProcessorTest#testProcessRequest_WithMsgBack
failed (#3629)
---
.../apache/rocketmq/broker/processor/SendMessageProcessorTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/broker/src/test/java/org/apache/rocketmq/broker/processor/SendMessageProcessorTest.java
b/broker/src/test/java/org/apache/rocketmq/broker/processor/SendMessageProcessorTest.java
index b9344e9..1f81bdb 100644
---
a/broker/src/test/java/org/apache/rocketmq/broker/processor/SendMessageProcessorTest.java
+++
b/broker/src/test/java/org/apache/rocketmq/broker/processor/SendMessageProcessorTest.java
@@ -88,7 +88,9 @@ public class SendMessageProcessorTest {
Channel mockChannel = mock(Channel.class);
when(mockChannel.remoteAddress()).thenReturn(new
InetSocketAddress(1024));
when(handlerContext.channel()).thenReturn(mockChannel);
- when(messageStore.lookMessageByOffset(anyLong())).thenReturn(new
MessageExt());
+ MessageExt messageExt = new MessageExt();
+ messageExt.setTopic(topic);
+
when(messageStore.lookMessageByOffset(anyLong())).thenReturn(messageExt);
sendMessageProcessor = new SendMessageProcessor(brokerController);
}