itest: timeouts for itets with etcd

This commit is contained in:
Andras Banki-Horvath 2020-10-26 19:28:04 +01:00
parent 369ae5e372
commit efedb5547c
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8
2 changed files with 28 additions and 1 deletions

@ -1,4 +1,4 @@
// +build !darwin
// +build !darwin, !kvdb_etcd
package lntest

27
lntest/timeouts_etcd.go Normal file

@ -0,0 +1,27 @@
// +build !darwin, kvdb_etcd
package lntest
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 * 120
// DefaultTimeout is a timeout that will be used for various wait
// scenarios where no custom timeout value is defined.
DefaultTimeout = time.Second * 30
// AsyncBenchmarkTimeout is the timeout used when running the async
// payments benchmark.
AsyncBenchmarkTimeout = 2 * time.Minute
)