mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01: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:
parent
d7f8fa6ab6
commit
73574d919d
2 changed files with 41 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
//go:build !darwin && !kvdb_etcd && !kvdb_postgres
|
||||
// +build !darwin,!kvdb_etcd,!kvdb_postgres
|
||||
//go:build !darwin && !windows && !kvdb_etcd && !kvdb_postgres
|
||||
// +build !darwin,!windows,!kvdb_etcd,!kvdb_postgres
|
||||
|
||||
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
|
||||
)
|
Loading…
Add table
Reference in a new issue