From 3bb9b398e5d4715e94d7f0727bc5dbe96facdc14 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 5 Nov 2018 22:12:02 +0100 Subject: [PATCH] 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. --- lnd_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lnd_test.go b/lnd_test.go index 00506f8b..3ff09185 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -43,7 +43,12 @@ var ( ) const ( - testFeeBase = 1e+6 + 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