Fixing testing
This commit is contained in:
parent
bb824e2717
commit
509f0d6ed7
|
@ -162,6 +162,7 @@ public class BlockTest {
|
|||
|
||||
@Test
|
||||
public void testCalcDifficulty() {
|
||||
try {
|
||||
Block genesis = Genesis.getInstance();
|
||||
BigInteger difficulty = new BigInteger(1, genesis.calcDifficulty());
|
||||
System.out.println("Genesis difficulty = " + difficulty.toString());
|
||||
|
@ -177,6 +178,9 @@ public class BlockTest {
|
|||
System.out.println("Block#1 actual difficulty = " + actualDifficulty.toString());
|
||||
System.out.println("Block#1 calculated difficulty = " + calcDifficulty.toString());
|
||||
assertEquals(actualDifficulty, calcDifficulty);
|
||||
} finally {
|
||||
WorldManager.instance.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue