Skip to content

Commit

Permalink
Upgrade new unit tests to bitcoin 0.18.1 API (#1157)
Browse files Browse the repository at this point in the history
We had 2 open PRs, one that added new tests using the 0.API, one that switched to 0.18.1, when they were merged the new tests failed since they had not been upgraded....
  • Loading branch information
sstone authored Oct 3, 2019
1 parent 37cc526 commit c968d06
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ class ElectrumWalletSpec extends TestKit(ActorSystem("test")) with FunSuiteLike
probe.send(wallet, BroadcastTransaction(tx))
val BroadcastTransactionResponse(`tx`, None) = probe.expectMsgType[BroadcastTransactionResponse]

probe.send(bitcoincli, BitcoinReq("generate", 1))
probe.expectMsgType[JValue]
generateBlocks(bitcoincli, 1)

awaitCond({
probe.send(wallet, GetData)
Expand All @@ -360,8 +359,7 @@ class ElectrumWalletSpec extends TestKit(ActorSystem("test")) with FunSuiteLike
probe.send(wallet, BroadcastTransaction(tx1))
val BroadcastTransactionResponse(`tx1`, None) = probe.expectMsgType[BroadcastTransactionResponse]

probe.send(bitcoincli, BitcoinReq("generate", 1))
probe.expectMsgType[JValue]
generateBlocks(bitcoincli, 1)

awaitCond({
probe.send(wallet, GetData)
Expand Down

0 comments on commit c968d06

Please sign in to comment.