lnd.xprv/lntest/itest
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
..
assertions.go itest: add logging for subtests 2021-04-14 12:30:19 +08:00
lnd_amp_test.go lnrpc: allow payment addr override for AMP invoices 2021-05-28 09:30:05 -07:00
lnd_channel_backup_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_etcd_failover_test.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
lnd_forward_interceptor_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_funding_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_hold_invoice_force_test.go itest/test: test hold invoice cancel before force close 2021-05-11 08:45:31 +02:00
lnd_hold_persistence_test.go itest: use require inside net.NewNode 2021-06-09 02:14:37 +08:00
lnd_macaroons_test.go itest: fix crash in parallel macaroon tests 2020-11-12 09:17:52 +01:00
lnd_max_channel_size_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_max_htlcs_test.go server: send 0 bandwidth hints for links that can't add htlc 2021-06-22 15:39:33 +02:00
lnd_mpp_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_multi-hop_htlc_aggregation_test.go itest/test: remove hold force close dependency 2021-04-23 08:19:58 +02:00
lnd_multi-hop_htlc_local_chain_claim_test.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
lnd_multi-hop_htlc_local_timeout_test.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
lnd_multi-hop_htlc_receiver_chain_claim_test.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
lnd_multi-hop_htlc_remote_chain_claim_test.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
lnd_multi-hop_local_force_close_on_chain_htlc_timeout_test.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00
lnd_multi-hop_remote_force_close_on_chain_htlc_timeout_test.go itest/test: assert expired hold invoice updated correctly 2021-05-11 08:45:32 +02:00
lnd_multi-hop_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_multi-hop-error-propagation_test.go itest: use require inside net.NewNode 2021-06-09 02:14:37 +08:00
lnd_multi-hop-payments_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_network_test.go itest: use require inside net.NewNode 2021-06-09 02:14:37 +08:00
lnd_no_etcd_dummy_failover_test.go itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
lnd_onchain_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_psbt_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
lnd_rest_api_test.go itest: add test for bi-directional WebSocket 2021-04-29 10:39:55 +02:00
lnd_send_multi_path_payment_test.go lntest: isolate alice+bob in mppTestContext 2021-05-10 22:02:15 -07:00
lnd_signer_test.go lntest: allow the main test files to be buildable w/o the rpctest build tag 2020-09-21 21:16:31 +02:00
lnd_single_hop_invoice_test.go lint: silence depreciation warnings 2021-05-04 17:33:14 +02:00
lnd_test_list_off_test.go itest: split tests into dynamic tranches 2020-11-04 11:03:29 +01:00
lnd_test_list_on_test.go server: send 0 bandwidth hints for links that can't add htlc 2021-06-22 15:39:33 +02:00
lnd_test.go lntest: retry node shutdown attempts to recovery tests 2021-06-24 15:37:32 -07:00
lnd_wallet_import_test.go itest: use require inside net.NewNode 2021-06-09 02:14:37 +08:00
lnd_wumbo_channels_test.go itest: use require inside net.SendCoins 2021-06-10 01:29:22 +08:00
log_check_errors.sh itest: fix log whitelist check 2020-12-09 08:06:16 +01:00
log_error_whitelist.txt htlcswitch: change errors to warnings 2021-05-23 19:17:59 +01:00
log_substitutions.txt lntest: wait for chain sync in switch test 2021-05-10 16:46:28 +02:00
test_harness.go build: update btcd and btcwallet dependencies 2021-04-05 15:41:04 -07:00