@@ -203,7 +203,7 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
203
203
// Print initial channel balances.
204
204
logBalance (t .t , nodes , assetID , "initial" )
205
205
206
- // Try larger invoice payments, first from Charlie to Erin , then half
206
+ // Try larger invoice payments, first from Charlie to Fabia , then half
207
207
// of the amount back in the other direction.
208
208
const fabiaInvoiceAssetAmount = 20_000
209
209
invoiceResp := createAssetInvoice (
@@ -215,6 +215,12 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
215
215
invoiceResp2 := createAssetInvoice (
216
216
t .t , dave , charlie , fabiaInvoiceAssetAmount / 2 , assetID ,
217
217
)
218
+
219
+ // Sleep for a second to make sure the balances fully propagated before
220
+ // we make the payment. Otherwise, we'll make an RFQ order with a max
221
+ // amount of zero.
222
+ time .Sleep (time .Second * 1 )
223
+
218
224
payInvoiceWithAssets (t .t , fabia , erin , invoiceResp2 , assetID , false )
219
225
logBalance (t .t , nodes , assetID , "after invoice 2" )
220
226
0 commit comments