From 76a7e9c729b95176a2cfba72a5cd0c07b5a6afb2 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sat, 8 Aug 2026 18:12:13 -0500 Subject: [PATCH] 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. --- client_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index f6e332c3..68ac56eb 100644 --- a/client_test.go +++ b/client_test.go @@ -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)