Skip to content

Commit e352152

Browse files
committed
optimize SyncBlockChainMsgHandlerTest
1 parent 2990f2d commit e352152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/src/test/java/org/tron/core/net/messagehandler/SyncBlockChainMsgHandlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public void testProcessMessage() throws Exception {
6969
Assert.assertTrue(!f);
7070

7171
Method method1 = handler.getClass().getDeclaredMethod(
72-
"getLostBlockIds", List.class);
72+
"getLostBlockIds", List.class, BlockId.class);
7373
method1.setAccessible(true);
7474
try {
75-
method1.invoke(handler, blockIds);
75+
method1.invoke(handler, blockIds, new BlockCapsule.BlockId());
7676
} catch (InvocationTargetException e) {
7777
Assert.assertEquals("unForkId is null", e.getTargetException().getMessage());
7878
}

0 commit comments

Comments
 (0)