lnd_test: define global test timeouts

In preparation for the added propagation delay by separating the miner
and the chain backend, we increase several timeouts throughout the test,
and extract them into constants that can easily be altered.
This commit is contained in:
Johan T. Halseth 2018-11-05 22:12:02 +01:00
parent 9b6055764a
commit 3bb9b398e5
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -44,6 +44,11 @@ var (
const (
testFeeBase = 1e+6
defaultCSV = lntest.DefaultCSV
defaultTimeout = lntest.DefaultTimeout
minerMempoolTimeout = lntest.MinerMempoolTimeout
channelOpenTimeout = lntest.ChannelOpenTimeout
channelCloseTimeout = lntest.ChannelCloseTimeout
)
// harnessTest wraps a regular testing.T providing enhanced error detection