test: use distinct loop out invoice hashes

The resume fixture mistakenly reused the swap payment hash for the
prepay invoice. This went unnoticed while tests identified payments by
their encoded invoices. Model the distinct hashes used by the server.
This commit is contained in:
Boris Nagaev 2026-08-08 18:12:13 -05:00
parent 2225538201
commit 76a7e9c729
No known key found for this signature in database

View file

@ -221,7 +221,9 @@ func testLoopOutResume(t *testing.T, confs uint32, expired, preimageRevealed,
swapPayReq, err := getInvoice(hash, amt, swapInvoiceDesc)
require.NoError(t, err)
prePayReq, err := getInvoice(hash, 100, prepayInvoiceDesc)
prepayHash := hash
prepayHash[0] ^= 1
prePayReq, err := getInvoice(prepayHash, 100, prepayInvoiceDesc)
require.NoError(t, err)
_, senderPubKey := test.CreateKey(1)