@@ -203,7 +203,7 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
203203 // Print initial channel balances.
204204 logBalance (t .t , nodes , assetID , "initial" )
205205
206- // Try larger invoice payments, first from Charlie to Erin , then half
206+ // Try larger invoice payments, first from Charlie to Fabia , then half
207207 // of the amount back in the other direction.
208208 const fabiaInvoiceAssetAmount = 20_000
209209 invoiceResp := createAssetInvoice (
@@ -215,6 +215,12 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
215215 invoiceResp2 := createAssetInvoice (
216216 t .t , dave , charlie , fabiaInvoiceAssetAmount / 2 , assetID ,
217217 )
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+
218224 payInvoiceWithAssets (t .t , fabia , erin , invoiceResp2 , assetID , false )
219225 logBalance (t .t , nodes , assetID , "after invoice 2" )
220226
0 commit comments