未验证 提交 606de993 编写于 作者: 赵延 提交者: GitHub

[ISSUE #2645] Fix unit case NPE in DefaultMessageStoreShutDownTest#testDispatchBehindWhenShutdown

上级 0d8a184a
......@@ -40,10 +40,11 @@ public class DefaultMessageStoreShutDownTest {
@Before
public void init() throws Exception {
messageStore = spy(buildMessageStore());
boolean load = messageStore.load();
DefaultMessageStore store = buildMessageStore();
boolean load = store.load();
assertTrue(load);
messageStore.start();
store.start();
messageStore = spy(store);
when(messageStore.dispatchBehindBytes()).thenReturn(100L);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册