multi: thread context through FetchPayment
This commit is contained in:
11 files changed
+55
-28
No files matched your search
@@ -1097,7 +1097,9 @@ func TestSendPaymentErrorPathPruning(t *testing.T) {
|
||||
require.Equal(t, paymentsdb.FailureReasonNoRoute, err)
|
||||
|
||||
// Inspect the two attempts that were made before the payment failed.
|
||||
p, err := ctx.router.cfg.Control.FetchPayment(*payment.paymentHash)
|
||||
p, err := ctx.router.cfg.Control.FetchPayment(
|
||||
t.Context(), *payment.paymentHash,
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
htlcs := p.GetHTLCs()
|
||||
|
||||
Reference in new issue
Block a user