Skip to content

Commit 6706d83

Browse files
committed
add testcase testProcessBlock for BlockMsgHandler
1 parent f5961f4 commit 6706d83

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ public void testProcessBlock() {
148148
ByteString.copyFrom("1234567".getBytes()));
149149

150150
peer.getAdvInvReceive()
151-
.put(new Item(blockCapsule0.getBlockId(), InventoryType.BLOCK), System.currentTimeMillis());
151+
.put(new Item(blockCapsule0.getBlockId(), InventoryType.BLOCK),
152+
System.currentTimeMillis());
152153

153154
Mockito.doReturn(true).when(tronNetDelegate).validBlock(any(BlockCapsule.class));
154155
Mockito.doReturn(true).when(tronNetDelegate).containBlock(any(BlockId.class));

0 commit comments

Comments
 (0)