mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:51:20 +02:00
multi: move timeouts into package wait
This commit moves the definition of timeout values into package `wait`, preparing the incoming merging of `lntemp` and `lntest`.
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
|
||||
"github.com/lightningnetwork/lnd/lntemp"
|
||||
"github.com/lightningnetwork/lnd/lntemp/node"
|
||||
"github.com/lightningnetwork/lnd/lntest"
|
||||
"github.com/lightningnetwork/lnd/lntest/wait"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -272,7 +271,7 @@ func runAsyncPayments(ht *lntemp.HarnessTest, alice, bob *node.HarnessNode) {
|
||||
settled := make(chan struct{})
|
||||
defer close(settled)
|
||||
|
||||
timeout := lntest.AsyncBenchmarkTimeout * 2
|
||||
timeout := wait.AsyncBenchmarkTimeout * 2
|
||||
for i := 0; i < numInvoices; i++ {
|
||||
payReq := bobPayReqs[i]
|
||||
go func() {
|
||||
@@ -376,7 +375,7 @@ func testBidirectionalAsyncPayments(ht *lntemp.HarnessTest) {
|
||||
settled := make(chan struct{})
|
||||
defer close(settled)
|
||||
|
||||
timeout := lntest.AsyncBenchmarkTimeout * 4
|
||||
timeout := wait.AsyncBenchmarkTimeout * 4
|
||||
send := func(node *node.HarnessNode, payReq string) {
|
||||
req := &routerrpc.SendPaymentRequest{
|
||||
PaymentRequest: payReq,
|
||||
|
@@ -38,9 +38,9 @@ var (
|
||||
const (
|
||||
testFeeBase = 1e+6
|
||||
defaultCSV = lntest.DefaultCSV
|
||||
defaultTimeout = lntest.DefaultTimeout
|
||||
minerMempoolTimeout = lntest.MinerMempoolTimeout
|
||||
channelCloseTimeout = lntest.ChannelCloseTimeout
|
||||
defaultTimeout = wait.DefaultTimeout
|
||||
minerMempoolTimeout = wait.MinerMempoolTimeout
|
||||
channelCloseTimeout = wait.ChannelCloseTimeout
|
||||
itestLndBinary = "../../lnd-itest"
|
||||
anchorSize = 330
|
||||
noFeeLimitMsat = math.MaxInt64
|
||||
|
Reference in New Issue
Block a user