@@ -41,9 +41,8 @@ func testSingleConfirmationNotification(miner *rpctest.Harness,
41
41
// function.
42
42
txid , pkScript , err := chainntnfs .GetTestTxidAndScript (miner )
43
43
require .NoError (t , err , "unable to create test tx" )
44
- if err := chainntnfs .WaitForMempoolTx (miner , txid ); err != nil {
45
- t .Fatalf ("tx not relayed to miner: %v" , err )
46
- }
44
+ err = chainntnfs .WaitForMempoolTx (miner , txid )
45
+ require .NoError (t , err , "tx not relayed to miner" )
47
46
48
47
_ , currentHeight , err := miner .Client .GetBestBlock ()
49
48
require .NoError (t , err , "unable to get current height" )
@@ -68,6 +67,10 @@ func testSingleConfirmationNotification(miner *rpctest.Harness,
68
67
blockHash , err := miner .Client .Generate (1 )
69
68
require .NoError (t , err , "unable to generate single block" )
70
69
70
+ // Assert the above tx is mined in the block.
71
+ block , err := miner .Client .GetBlock (blockHash [0 ])
72
+ require .Len (t , block .Transactions , 2 , "block does not contain tx" )
73
+
71
74
select {
72
75
case confInfo := <- confIntent .Confirmed :
73
76
if ! confInfo .BlockHash .IsEqual (blockHash [0 ]) {
0 commit comments