lnd.xprv/lntest
Olaoluwa Osuntokun 5bd84e2a60
lntest: retry node shutdown attempts to recovery tests
In #5364 we added a new error path in the `StopDaemon` method to return
an error if shutdown was attempted while a rescan/recover instance was
in progress. Since the wallet actually won't fully stop (atm)
mid-recovery, the call effectively didn't do anything in that scenario,
so we started to return an error to properly reflect that. However this
causes certain itests to fail, as during recovery, the stop attempt will
fail leading to the test itself failing.

In this commit, we wrap the calls to stop a running daemon within a
`wait.NoError` call so we'll continually try to shut down the daemon
rather than quit on the first try.

Fixes #5423.
2021-06-24 15:37:32 -07:00
..
channels lntest/channels: introduce subpackage to deduplicate static structs 2021-01-25 14:04:39 -05:00
itest lntest: retry node shutdown attempts to recovery tests 2021-06-24 15:37:32 -07:00
mock lntest/mock: set input index on spend event 2021-05-12 12:32:28 +02:00
wait lntest: go easy on goroutines when polling 2020-12-08 21:37:11 +01:00
bitcoind_common.go itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
bitcoind_notxindex.go lntest: add build flag for disabling txindex on bitcoind 2020-10-09 13:35:04 +02:00
bitcoind.go lntest: add build flag for disabling txindex on bitcoind 2020-10-09 13:35:04 +02:00
btcd.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
doc.go lntest: Add doc.go with package documentation. 2017-12-14 20:06:23 -08:00
fee_service_test.go lntest: use web fee estimator in itests 2020-09-16 08:17:34 +02:00
fee_service.go itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
harness.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
neutrino.go lntest: decrease broadcast timeout for neutrino-backed integration tests 2021-04-29 13:56:19 -07:00
node.go lntest: retry node shutdown attempts to recovery tests 2021-06-24 15:37:32 -07:00
timeouts_darwin.go lntest/timeouts: fix darwin+kvdb_etcd build 2020-11-18 15:28:39 -08:00
timeouts_etcd.go lntest/timeouts: fix darwin+kvdb_etcd build 2020-11-18 15:28:39 -08:00
timeouts.go lntest/timeouts: remove spaces from build predicates 2020-11-18 15:16:25 -08:00