Skip to content

Commit 3a043ce

Browse files
GeorgeTsagkguggero
authored andcommitted
itest: add asset invoice normal payment case
1 parent 227c4f9 commit 3a043ce

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

itest/litd_custom_channels_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,19 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
428428
charlieAssetBalance -= daveInvoiceAssetAmount
429429
daveAssetBalance += daveInvoiceAssetAmount
430430

431+
// ------------
432+
// Test case 3.5: Pay an asset invoice from Dave by Charlie with normal
433+
// payment flow.
434+
// ------------
435+
invoiceResp = createAssetInvoice(
436+
t.t, charlie, dave, daveInvoiceAssetAmount, assetID,
437+
)
438+
payInvoiceWithSatoshi(t.t, charlie, invoiceResp)
439+
logBalance(t.t, nodes, assetID, "after asset invoice paid with sats")
440+
441+
// We don't need to update the asset balances of Charlie and Dave here
442+
// as the invoice was paid with sats.
443+
431444
// ------------
432445
// Test case 4: Pay a normal invoice from Erin by Charlie.
433446
// ------------

0 commit comments

Comments
 (0)