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.
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -9,6 +9,7 @@ import (
|
|||||||
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
|
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
|
||||||
"github.com/lightningnetwork/lnd/lntest"
|
"github.com/lightningnetwork/lnd/lntest"
|
||||||
"github.com/lightningnetwork/lnd/lntest/node"
|
"github.com/lightningnetwork/lnd/lntest/node"
|
||||||
|
"github.com/lightningnetwork/lnd/lntest/wait"
|
||||||
"github.com/lightningnetwork/lnd/routing"
|
"github.com/lightningnetwork/lnd/routing"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
@@ -376,7 +377,7 @@ func runFeeEstimationTestCase(ht *lntest.HarnessTest,
|
|||||||
)
|
)
|
||||||
feeReq = &routerrpc.RouteFeeRequest{
|
feeReq = &routerrpc.RouteFeeRequest{
|
||||||
PaymentRequest: payReqs[0],
|
PaymentRequest: payReqs[0],
|
||||||
Timeout: 10,
|
Timeout: uint32(wait.PaymentTimeout.Seconds()),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
feeReq = &routerrpc.RouteFeeRequest{
|
feeReq = &routerrpc.RouteFeeRequest{
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ func (p *paymentLifecycle) checkContext(ctx context.Context) error {
|
|||||||
if errors.Is(ctx.Err(), context.DeadlineExceeded) {
|
if errors.Is(ctx.Err(), context.DeadlineExceeded) {
|
||||||
reason = channeldb.FailureReasonTimeout
|
reason = channeldb.FailureReasonTimeout
|
||||||
log.Warnf("Payment attempt not completed before "+
|
log.Warnf("Payment attempt not completed before "+
|
||||||
"timeout, id=%s", p.identifier.String())
|
"context timeout, id=%s", p.identifier.String())
|
||||||
} else {
|
} else {
|
||||||
reason = channeldb.FailureReasonCanceled
|
reason = channeldb.FailureReasonCanceled
|
||||||
log.Warnf("Payment attempt context canceled, id=%s",
|
log.Warnf("Payment attempt context canceled, id=%s",
|
||||||
|
|||||||
Reference in new issue
Block a user