From 26152422710d2530aa0f2c3651c1c2f81a4f9059 Mon Sep 17 00:00:00 2001 From: fluency03 Date: Fri, 4 May 2018 16:46:07 +0200 Subject: [PATCH] add some tests --- .../fluency03/blockchain/api/actors/BlockPoolActorTest.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/scala/com/fluency03/blockchain/api/actors/BlockPoolActorTest.scala b/src/test/scala/com/fluency03/blockchain/api/actors/BlockPoolActorTest.scala index 3890c5c..ae8d013 100644 --- a/src/test/scala/com/fluency03/blockchain/api/actors/BlockPoolActorTest.scala +++ b/src/test/scala/com/fluency03/blockchain/api/actors/BlockPoolActorTest.scala @@ -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))