mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
[ISSUE #2645] Fix unit case NPE in DefaultMessageStoreShutDownTest#testDispatchBehindWhenShutdown
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user