test: remove unused PayInvoice mock path

Loop no longer pays invoices through LightningClient.PayInvoice.
Production payment paths use the router client wrappers. lndclient now
also implements PayInvoice on top of router payment APIs, so the old
SendPaymentChannel mock path is no longer exercised.

Remove the dead PayInvoice mock, its SendPaymentChannel plumbing, and
the loop-in resume assertion that watched that channel.
This commit is contained in:
Boris Nagaev 2026-06-11 14:57:04 -05:00
parent cfe9e401c4
commit 2d446b3b9e
No known key found for this signature in database
3 changed files with 0 additions and 35 deletions

View file

@ -655,12 +655,6 @@ func testLoopInResume(t *testing.T, state loopdb.SwapState, expired bool,
defer func() {
require.NoError(t, <-errChan)
select {
case <-ctx.lnd.SendPaymentChannel:
t.Fatal("unexpected payment sent")
default:
}
select {
case <-ctx.lnd.SendOutputsChannel:
t.Fatal("unexpected tx published")