From efedb5547c55061445e3a833d8978a2a13071647 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Mon, 26 Oct 2020 19:28:04 +0100 Subject: [PATCH] itest: timeouts for itets with etcd --- lntest/timeouts.go | 2 +- lntest/timeouts_etcd.go | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 lntest/timeouts_etcd.go diff --git a/lntest/timeouts.go b/lntest/timeouts.go index 305bf872..f6d6a961 100644 --- a/lntest/timeouts.go +++ b/lntest/timeouts.go @@ -1,4 +1,4 @@ -// +build !darwin +// +build !darwin, !kvdb_etcd package lntest diff --git a/lntest/timeouts_etcd.go b/lntest/timeouts_etcd.go new file mode 100644 index 00000000..9d6062f9 --- /dev/null +++ b/lntest/timeouts_etcd.go @@ -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 +)