test: refresh route hint preservation comments

lndclient now forwards route hints through AddInvoice. These tests
assert that Loop preserves explicit hints on generated loop-in invoices.
Remove stale comments that described the old wrapper behavior as
dropping hints.
This commit is contained in:
Boris Nagaev 2026-06-11 14:57:27 -05:00
parent 2d446b3b9e
commit 950b5f1772
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -127,9 +127,8 @@ func TestLoopInSuccess(t *testing.T) {
}
// TestLoopInSwapInvoiceRouteHintsMatchProbe asserts that explicit route hints
// are preserved on both loop-in invoices. The probe invoice already keeps the
// requested hints, while the swap invoice currently loses them via the
// lndclient AddInvoice wrapper.
// are preserved on both loop-in invoices so the swap invoice matches the probe
// invoice.
func TestLoopInSwapInvoiceRouteHintsMatchProbe(t *testing.T) {
t.Parallel()

View file

@ -130,7 +130,7 @@ func TestMonitorInvoiceAndHtlcTxReRegistersOnConfErr(t *testing.T) {
// TestInitHtlcActionPreservesRouteHints asserts that static-address loop-in
// propagates explicit route hints into the encoded swap invoice sent to the
// server. This currently fails because lndclient.AddInvoice drops route hints.
// server.
func TestInitHtlcActionPreservesRouteHints(t *testing.T) {
t.Parallel()