Skip to content

Commit ddceb2b

Browse files
committed
lntest: increase timeout for postgres backend
Also decrease timeout values for other builds.
1 parent 26892a2 commit ddceb2b

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

lntest/wait/timeouts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616

1717
// ChannelCloseTimeout is the max time we will wait before a channel is
1818
// considered closed.
19-
ChannelCloseTimeout = time.Second * 60
19+
ChannelCloseTimeout = time.Second * 30
2020

2121
// DefaultTimeout is a timeout that will be used for various wait
2222
// scenarios where no custom timeout value is defined.

lntest/wait/timeouts_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616

1717
// ChannelCloseTimeout is the max time we will wait before a channel is
1818
// considered closed.
19-
ChannelCloseTimeout = time.Second * 60
19+
ChannelCloseTimeout = time.Second * 30
2020

2121
// DefaultTimeout is a timeout that will be used for various wait
2222
// scenarios where no custom timeout value is defined.

lntest/wait/timeouts_remote_db.go

+13-8
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,39 @@ package wait
66
import "time"
77

88
const (
9+
// extraTimeout is the additional time we wait for the postgres backend
10+
// until the issue is resolved:
11+
// - https://github.com/lightningnetwork/lnd/issues/8809
12+
extraTimeout = time.Second * 30
13+
914
// MinerMempoolTimeout is the max time we will wait for a transaction
1015
// to propagate to the mining node's mempool.
11-
MinerMempoolTimeout = time.Minute
16+
MinerMempoolTimeout = time.Minute + extraTimeout
1217

1318
// ChannelOpenTimeout is the max time we will wait before a channel to
1419
// be considered opened.
15-
ChannelOpenTimeout = time.Second * 30
20+
ChannelOpenTimeout = time.Second*30 + extraTimeout
1621

1722
// ChannelCloseTimeout is the max time we will wait before a channel is
1823
// considered closed.
19-
ChannelCloseTimeout = time.Second * 30
24+
ChannelCloseTimeout = time.Second*30 + extraTimeout
2025

2126
// DefaultTimeout is a timeout that will be used for various wait
2227
// scenarios where no custom timeout value is defined.
23-
DefaultTimeout = time.Second * 60
28+
DefaultTimeout = time.Second*60 + extraTimeout
2429

2530
// AsyncBenchmarkTimeout is the timeout used when running the async
2631
// payments benchmark.
27-
AsyncBenchmarkTimeout = time.Minute * 2
32+
AsyncBenchmarkTimeout = time.Minute*2 + extraTimeout
2833

2934
// NodeStartTimeout is the timeout value when waiting for a node to
3035
// become fully started.
31-
NodeStartTimeout = time.Minute * 2
36+
NodeStartTimeout = time.Minute*2 + extraTimeout
3237

3338
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
3439
// will wait for the connection to become available.
35-
SqliteBusyTimeout = time.Second * 10
40+
SqliteBusyTimeout = time.Second*10 + extraTimeout
3641

3742
// PaymentTimeout is the timeout used when sending payments.
38-
PaymentTimeout = time.Second * 60
43+
PaymentTimeout = time.Second*60 + extraTimeout
3944
)

0 commit comments

Comments
 (0)