@@ -482,14 +482,12 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
482482	// a direct channel invoice payment with no RFQ SCID present in the 
483483	// invoice. 
484484	// ------------ 
485- 	paidAssetAmount   :=   createAndPayNormalInvoice (
485+ 	createAndPayNormalInvoice (
486486		t .t , charlie , dave , dave , 20_000 , assetID , withSmallShards (),
487+ 		withFailure (lnrpc .Payment_FAILED , lnrpc .PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS ),
487488	)
488489	logBalance (t .t , nodes , assetID , "after invoice" )
489490
490- 	charlieAssetBalance  -=  paidAssetAmount 
491- 	daveAssetBalance  +=  paidAssetAmount 
492- 
493491	// We should also be able to do a multi-hop BTC only payment, paying an 
494492	// invoice from Erin by Charlie. 
495493	createAndPayNormalInvoiceWithBtc (t .t , charlie , erin , 2000 )
@@ -535,7 +533,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
535533	// ------------ 
536534	// Test case 4: Pay a normal invoice from Erin by Charlie. 
537535	// ------------ 
538- 	paidAssetAmount  =  createAndPayNormalInvoice (
536+ 	paidAssetAmount  : =  createAndPayNormalInvoice (
539537		t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
540538	)
541539	logBalance (t .t , nodes , assetID , "after invoice" )
@@ -921,14 +919,12 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
921919	// a direct channel invoice payment with no RFQ SCID present in the 
922920	// invoice. 
923921	// ------------ 
924- 	paidAssetAmount   :=   createAndPayNormalInvoice (
922+ 	createAndPayNormalInvoice (
925923		t .t , charlie , dave , dave , 20_000 , assetID , withSmallShards (),
924+ 		withFailure (lnrpc .Payment_FAILED , lnrpc .PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS ),
926925	)
927926	logBalance (t .t , nodes , assetID , "after invoice" )
928927
929- 	charlieAssetBalance  -=  paidAssetAmount 
930- 	daveAssetBalance  +=  paidAssetAmount 
931- 
932928	// We should also be able to do a multi-hop BTC only payment, paying an 
933929	// invoice from Erin by Charlie. 
934930	createAndPayNormalInvoiceWithBtc (t .t , charlie , erin , 2000 )
@@ -965,7 +961,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
965961	// ------------ 
966962	// Test case 4: Pay a normal invoice from Erin by Charlie. 
967963	// ------------ 
968- 	paidAssetAmount  =  createAndPayNormalInvoice (
964+ 	paidAssetAmount  : =  createAndPayNormalInvoice (
969965		t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
970966	)
971967	logBalance (t .t , nodes , assetID , "after invoice" )
@@ -1959,17 +1955,6 @@ func testCustomChannelsLiquidityEdgeCases(ctxb context.Context,
19591955		t .t , charlie , invoiceResp .RHash , assetID , bigAssetAmount ,
19601956	)
19611957
1962- 	// Edge case: Big normal invoice, paid by direct channel peer with 
1963- 	// assets. 
1964- 	const  hugeAssetAmount  =  1_000_000 
1965- 	_  =  createAndPayNormalInvoice (
1966- 		t .t , dave , charlie , charlie , hugeAssetAmount , assetID ,
1967- 		withSmallShards (),
1968- 	)
1969- 
1970- 	logBalance (t .t , nodes , assetID , "after big asset payment (btc " + 
1971- 		"invoice, direct)" )
1972- 
19731958	// Dave sends 200k assets and 5k sats to Yara. 
19741959	sendAssetKeySendPayment (
19751960		t .t , dave , yara , 2 * bigAssetAmount , assetID , fn .None [int64 ](),
0 commit comments