channeldb/payments_test: handle that dupe payments will always have StatusSuccess

Legacy duplicate payments would only be migrated over if they had
succeeded. Alter the test to reflect this.
This commit is contained in:
Johan T. Halseth
2021-01-22 14:04:20 +01:00
parent c9ed5927f6
commit 82fe6f5f59
2 changed files with 21 additions and 13 deletions

View File

@@ -466,7 +466,7 @@ func TestPaymentControlDeleteNonInFligt(t *testing.T) {
if p.hasDuplicate {
appendDuplicatePayment(
t, pControl.db, info.PaymentHash,
uint64(duplicateSeqNr),
uint64(duplicateSeqNr), preimg,
)
duplicateSeqNr++
}