@@ -6,34 +6,39 @@ package wait
6
6
import "time"
7
7
8
8
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
+
9
14
// MinerMempoolTimeout is the max time we will wait for a transaction
10
15
// to propagate to the mining node's mempool.
11
- MinerMempoolTimeout = time .Minute
16
+ MinerMempoolTimeout = time .Minute + extraTimeout
12
17
13
18
// ChannelOpenTimeout is the max time we will wait before a channel to
14
19
// be considered opened.
15
- ChannelOpenTimeout = time .Second * 30
20
+ ChannelOpenTimeout = time .Second * 30 + extraTimeout
16
21
17
22
// ChannelCloseTimeout is the max time we will wait before a channel is
18
23
// considered closed.
19
- ChannelCloseTimeout = time .Second * 30
24
+ ChannelCloseTimeout = time .Second * 30 + extraTimeout
20
25
21
26
// DefaultTimeout is a timeout that will be used for various wait
22
27
// scenarios where no custom timeout value is defined.
23
- DefaultTimeout = time .Second * 60
28
+ DefaultTimeout = time .Second * 60 + extraTimeout
24
29
25
30
// AsyncBenchmarkTimeout is the timeout used when running the async
26
31
// payments benchmark.
27
- AsyncBenchmarkTimeout = time .Minute * 2
32
+ AsyncBenchmarkTimeout = time .Minute * 2 + extraTimeout
28
33
29
34
// NodeStartTimeout is the timeout value when waiting for a node to
30
35
// become fully started.
31
- NodeStartTimeout = time .Minute * 2
36
+ NodeStartTimeout = time .Minute * 2 + extraTimeout
32
37
33
38
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
34
39
// will wait for the connection to become available.
35
- SqliteBusyTimeout = time .Second * 10
40
+ SqliteBusyTimeout = time .Second * 10 + extraTimeout
36
41
37
42
// PaymentTimeout is the timeout used when sending payments.
38
- PaymentTimeout = time .Second * 60
43
+ PaymentTimeout = time .Second * 60 + extraTimeout
39
44
)
0 commit comments