Skip to content

Commit ba33096

Browse files
committed
test:improve the assert
1 parent 0e45b83 commit ba33096

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/test/java/org/tron/core/BlockUtilTest.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public void testBlockUtil() {
4949
Assert.assertEquals(0, blockCapsule1.getTimeStamp());
5050
Assert.assertEquals(sha256Hash,
5151
blockCapsule1.getParentHash());
52-
Assert.assertEquals(100000,
53-
blockCapsule1.getNum());
52+
Assert.assertEquals(0, blockCapsule1.getNum());
5453

5554
//test isParentOf method: create blockCapsule2 and blockCapsule3
5655
// blockCapsule3.setParentHash() equals blockCapsule2.getBlockId

0 commit comments

Comments
 (0)