lnd/lntest
Matheus Degiovani 16a4687718
itest: Fix flakes when payments cause chan closure
This fixes itest flakes that happen when a payment is attempted that
ends up causing a channel closure.

completePaymentRequests() attempts to monitor the open channels after a
payment is attempted in order to identify that payment was actually
dispatched to a remote node before returning.

However, when the payment actually causes a channel closure (for
example, because the receiver sent an incorrect preimage) this logic
fails in that the channel will no longer the found in the list of open
channels. This could cause a flake when there was enough time for the
channel to close before performing the check.

One example of such a flaky test is failing_link.

This fixes the issue by also checking whether the total number of
channels was reduced, which indicates (assuming itest operations are
being executed serially) that one of the attempted payments affected at
least one channel.
2020-10-27 08:07:49 -03:00
..
itest itest: Fix flakes when payments cause chan closure 2020-10-27 08:07:49 -03:00
mock lnwallet+mock: add new PSBT methods 2020-10-03 10:34:39 +02:00
wait lntest+wait: replace sleeps in assertAmountSent 2019-12-18 23:57:12 -08:00
bitcoind_common.go lntest: use extraArgs, fix linter issues 2020-10-09 13:35:02 +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 Merge pull request #4589 from yyforyongyu/itest-proper-cleanup 2020-09-25 10:31:56 +02: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 lntest: use web fee estimator in itests 2020-09-16 08:17:34 +02:00
harness.go lntest: fix most linter warnings, silence rest 2020-09-21 21:16:31 +02:00
neutrino.go itest: disable node retrying to connect to miner 2020-09-12 20:09:54 +08:00
node.go itest: save temp miner's logs 2020-10-02 00:04:47 +08:00
timeouts_darwin.go itest: increase mempool timeout 2020-05-26 19:49:42 -07:00
timeouts.go itest: increase mempool timeout 2020-05-26 19:49:42 -07:00