mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +02:00
lntest: add timeouts for windows
For Windows the tests run much slower so we create customized timeouts for them.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//go:build !darwin && !kvdb_etcd && !kvdb_postgres
|
//go:build !darwin && !windows && !kvdb_etcd && !kvdb_postgres
|
||||||
// +build !darwin,!kvdb_etcd,!kvdb_postgres
|
// +build !darwin,!windows,!kvdb_etcd,!kvdb_postgres
|
||||||
|
|
||||||
package wait
|
package wait
|
||||||
|
|
||||||
|
39
lntest/wait/timeouts_windows.go
Normal file
39
lntest/wait/timeouts_windows.go
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
//go:build windows && !kvdb_etcd && !kvdb_postgres
|
||||||
|
// +build windows,!kvdb_etcd,!kvdb_postgres
|
||||||
|
|
||||||
|
package wait
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
const (
|
||||||
|
// MinerMempoolTimeout is the max time we will wait for a transaction
|
||||||
|
// to propagate to the mining node's mempool.
|
||||||
|
MinerMempoolTimeout = time.Minute
|
||||||
|
|
||||||
|
// ChannelOpenTimeout is the max time we will wait before a channel to
|
||||||
|
// be considered opened.
|
||||||
|
ChannelOpenTimeout = time.Second * 30
|
||||||
|
|
||||||
|
// ChannelCloseTimeout is the max time we will wait before a channel is
|
||||||
|
// considered closed.
|
||||||
|
ChannelCloseTimeout = time.Second * 30
|
||||||
|
|
||||||
|
// DefaultTimeout is a timeout that will be used for various wait
|
||||||
|
// scenarios where no custom timeout value is defined.
|
||||||
|
DefaultTimeout = time.Second * 60
|
||||||
|
|
||||||
|
// AsyncBenchmarkTimeout is the timeout used when running the async
|
||||||
|
// payments benchmark.
|
||||||
|
AsyncBenchmarkTimeout = time.Minute * 5
|
||||||
|
|
||||||
|
// NodeStartTimeout is the timeout value when waiting for a node to
|
||||||
|
// become fully started.
|
||||||
|
NodeStartTimeout = time.Minute * 3
|
||||||
|
|
||||||
|
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
|
||||||
|
// will wait for the connection to become available.
|
||||||
|
SqliteBusyTimeout = time.Second * 10
|
||||||
|
|
||||||
|
// PaymentTimeout is the timeout used when sending payments.
|
||||||
|
PaymentTimeout = time.Second * 120
|
||||||
|
)
|
Reference in New Issue
Block a user