mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
2225538201
commit
76a7e9c729
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue