Skip to content

Commit 4eea207

Browse files
committed
itest+routing: fix flake in runFeeEstimationTestCase
The test used 10s as the timeout value, which can easily cause a timeout in a slow build so we increase it to 60s.
1 parent 8b8f0c4 commit 4eea207

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

itest/lnd_estimate_route_fee_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
1010
"github.com/lightningnetwork/lnd/lntest"
1111
"github.com/lightningnetwork/lnd/lntest/node"
12+
"github.com/lightningnetwork/lnd/lntest/wait"
1213
"github.com/lightningnetwork/lnd/routing"
1314
"github.com/stretchr/testify/require"
1415
)
@@ -376,7 +377,7 @@ func runFeeEstimationTestCase(ht *lntest.HarnessTest,
376377
)
377378
feeReq = &routerrpc.RouteFeeRequest{
378379
PaymentRequest: payReqs[0],
379-
Timeout: 10,
380+
Timeout: uint32(wait.PaymentTimeout.Seconds()),
380381
}
381382
} else {
382383
feeReq = &routerrpc.RouteFeeRequest{

routing/payment_lifecycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (p *paymentLifecycle) checkContext(ctx context.Context) error {
348348
if errors.Is(ctx.Err(), context.DeadlineExceeded) {
349349
reason = channeldb.FailureReasonTimeout
350350
log.Warnf("Payment attempt not completed before "+
351-
"timeout, id=%s", p.identifier.String())
351+
"context timeout, id=%s", p.identifier.String())
352352
} else {
353353
reason = channeldb.FailureReasonCanceled
354354
log.Warnf("Payment attempt context canceled, id=%s",

0 commit comments

Comments
 (0)