mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-14 22:00:07 +02:00
lntest: increase timeout for postgres backend
Also decrease timeout values for other builds.
This commit is contained in:
parent
26892a2645
commit
ddceb2b15b
@ -16,7 +16,7 @@ const (
|
|||||||
|
|
||||||
// ChannelCloseTimeout is the max time we will wait before a channel is
|
// ChannelCloseTimeout is the max time we will wait before a channel is
|
||||||
// considered closed.
|
// considered closed.
|
||||||
ChannelCloseTimeout = time.Second * 60
|
ChannelCloseTimeout = time.Second * 30
|
||||||
|
|
||||||
// DefaultTimeout is a timeout that will be used for various wait
|
// DefaultTimeout is a timeout that will be used for various wait
|
||||||
// scenarios where no custom timeout value is defined.
|
// scenarios where no custom timeout value is defined.
|
||||||
|
@ -16,7 +16,7 @@ const (
|
|||||||
|
|
||||||
// ChannelCloseTimeout is the max time we will wait before a channel is
|
// ChannelCloseTimeout is the max time we will wait before a channel is
|
||||||
// considered closed.
|
// considered closed.
|
||||||
ChannelCloseTimeout = time.Second * 60
|
ChannelCloseTimeout = time.Second * 30
|
||||||
|
|
||||||
// DefaultTimeout is a timeout that will be used for various wait
|
// DefaultTimeout is a timeout that will be used for various wait
|
||||||
// scenarios where no custom timeout value is defined.
|
// scenarios where no custom timeout value is defined.
|
||||||
|
@ -6,34 +6,39 @@ package wait
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// extraTimeout is the additional time we wait for the postgres backend
|
||||||
|
// until the issue is resolved:
|
||||||
|
// - https://github.com/lightningnetwork/lnd/issues/8809
|
||||||
|
extraTimeout = time.Second * 30
|
||||||
|
|
||||||
// MinerMempoolTimeout is the max time we will wait for a transaction
|
// MinerMempoolTimeout is the max time we will wait for a transaction
|
||||||
// to propagate to the mining node's mempool.
|
// to propagate to the mining node's mempool.
|
||||||
MinerMempoolTimeout = time.Minute
|
MinerMempoolTimeout = time.Minute + extraTimeout
|
||||||
|
|
||||||
// ChannelOpenTimeout is the max time we will wait before a channel to
|
// ChannelOpenTimeout is the max time we will wait before a channel to
|
||||||
// be considered opened.
|
// be considered opened.
|
||||||
ChannelOpenTimeout = time.Second * 30
|
ChannelOpenTimeout = time.Second*30 + extraTimeout
|
||||||
|
|
||||||
// ChannelCloseTimeout is the max time we will wait before a channel is
|
// ChannelCloseTimeout is the max time we will wait before a channel is
|
||||||
// considered closed.
|
// considered closed.
|
||||||
ChannelCloseTimeout = time.Second * 30
|
ChannelCloseTimeout = time.Second*30 + extraTimeout
|
||||||
|
|
||||||
// DefaultTimeout is a timeout that will be used for various wait
|
// DefaultTimeout is a timeout that will be used for various wait
|
||||||
// scenarios where no custom timeout value is defined.
|
// scenarios where no custom timeout value is defined.
|
||||||
DefaultTimeout = time.Second * 60
|
DefaultTimeout = time.Second*60 + extraTimeout
|
||||||
|
|
||||||
// AsyncBenchmarkTimeout is the timeout used when running the async
|
// AsyncBenchmarkTimeout is the timeout used when running the async
|
||||||
// payments benchmark.
|
// payments benchmark.
|
||||||
AsyncBenchmarkTimeout = time.Minute * 2
|
AsyncBenchmarkTimeout = time.Minute*2 + extraTimeout
|
||||||
|
|
||||||
// NodeStartTimeout is the timeout value when waiting for a node to
|
// NodeStartTimeout is the timeout value when waiting for a node to
|
||||||
// become fully started.
|
// become fully started.
|
||||||
NodeStartTimeout = time.Minute * 2
|
NodeStartTimeout = time.Minute*2 + extraTimeout
|
||||||
|
|
||||||
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
|
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
|
||||||
// will wait for the connection to become available.
|
// will wait for the connection to become available.
|
||||||
SqliteBusyTimeout = time.Second * 10
|
SqliteBusyTimeout = time.Second*10 + extraTimeout
|
||||||
|
|
||||||
// PaymentTimeout is the timeout used when sending payments.
|
// PaymentTimeout is the timeout used when sending payments.
|
||||||
PaymentTimeout = time.Second * 60
|
PaymentTimeout = time.Second*60 + extraTimeout
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user