-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2846 from cfromknecht/lntest-darwin-timeouts
lntest/timeout: split into darwin and non-darwin timeouts
- Loading branch information
Showing
4 changed files
with
82 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// +build !darwin | ||
|
||
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.Second * 30 | ||
|
||
// 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 * 30 | ||
|
||
// 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 = time.Minute | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// +build darwin | ||
|
||
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.Second * 30 | ||
|
||
// 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 * 30 | ||
|
||
// 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. This timeout takes considerably longer on darwin | ||
// after go1.12 corrected its use of fsync. | ||
AsyncBenchmarkTimeout = time.Minute * 3 | ||
) |