Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed May 4, 2018
1 parent f22c5de commit 2615242
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class BlockPoolActorTest extends TestKit(ActorSystem("BlocksActorTest")) with Im
expectMsg(None)

blockPoolActor ! GetTxOfBlock(Block.genesisBlock.transactions.head.id, "bb")
expectMsg(Some(Block.genesisBlock.transactions.head))
expectMsg(None)

blockPoolActor ! GetTxOfBlock(Block.genesisBlock.transactions.head.id, Block.genesisBlock.hash)
expectMsg(Some(Block.genesisBlock))

blockPoolActor ! GetBlocks(Set(Block.genesisBlock.hash))
expectMsg(Seq(Block.genesisBlock))
Expand Down

0 comments on commit 2615242

Please sign in to comment.