Fix tests

This commit is contained in:
Manfred Karrer 2018-12-05 02:38:56 +01:00
parent c0d2d534bc
commit 397772f5d0
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -40,8 +40,8 @@ public class DaoStateServiceTest {
Block block = new Block(0, 1534800000, "fakeblockhash0", null);
stateService.onNewBlockWithEmptyTxs(block);
Assert.assertEquals(
"Block that was added should exist.",
true,
"Block has to be genesis block to get added.",
false,
stateService.isBlockHashKnown("fakeblockhash0")
);
@ -62,10 +62,5 @@ public class DaoStateServiceTest {
false,
stateService.isBlockHashKnown("fakeblockhash4")
);
Assert.assertEquals(
"Block that was added along with more blocks should exist.",
true,
stateService.isBlockHashKnown("fakeblockhash3")
);
}
}