invoices: use longer timeout for HTLC resolution in AMP test

Under parallel Postgres test load, the event loop must complete
sequential DB writes after SetTime fires. Using testTimeout (5s)
is too tight; switch the three blocking hodlChan selects in
testFailPartialAMPPayment to testTimeoutLong (1 minute) to
match the pattern already used elsewhere for slow backends.
This commit is contained in:
ziggie committed 2026-03-04 13:04:26 +01:00
1 parent f6f6064938
commit 7995e87b91
1 file changed
+3 -3
+3 -3
View File
@@ -2322,7 +2322,7 @@ func testFailPartialAMPPayment(t *testing.T,
"expected MPPTimeout, got: %v", failRes.Outcome,
)
case <-time.After(testTimeout):
case <-time.After(testTimeoutLong):
t.Fatal("timeout waiting for HTLC resolution")
}
@@ -2339,7 +2339,7 @@ func testFailPartialAMPPayment(t *testing.T,
"expected MPPTimeout, got: %v", failRes.Outcome,
)
case <-time.After(testTimeout):
case <-time.After(testTimeoutLong):
t.Fatal("timeout waiting for HTLC resolution")
}
@@ -2408,7 +2408,7 @@ func testFailPartialAMPPayment(t *testing.T,
"expected MPPTimeout, got: %v", failRes.Outcome,
)
case <-time.After(testTimeout):
case <-time.After(testTimeoutLong):
t.Fatal("timeout waiting for HTLC resolution")
}