@@ -6,34 +6,39 @@ package wait
66import "time"
77
88const (
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