Commit Graph

23 Commits

Author SHA1 Message Date
Elle Mouton
18909e1a8e lntest: show that multi addresses are not used
This commit adds an itest to demonstrate that if a peer advertises
multiplie external IP addresses, then they will not all be used to
reconnect to the peer during reconnection. This will be fixed in a
follow-up commit.
2021-10-04 14:57:49 +02:00
Oliver Gugger
57253c0c05 itest: add test for fully external PSBT funding 2021-10-04 11:17:08 +02:00
Oliver Gugger
0b4e03f5fc multi: add golang 1.17 compatible build tags
With go 1.17 a change to the build flags was implemented:
https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md

The formatter now automatically adds the forward-compatible build tag
format and the linter checks for them, so we need to include them in our
code.
2021-09-29 17:31:37 -07:00
yyforyongyu
c525c3d34e itest: test wipe forwarind packages 2021-09-23 13:24:11 +08:00
Oliver Gugger
4b43e977b2 lntest: add RPC middleware itests 2021-09-20 17:04:39 +02:00
Oliver Gugger
7a9ee48cf1 itest: add batch funding test 2021-09-03 18:39:45 +02:00
yyforyongyu
7c64e0445a itest: test anchor sweep with commitment deadline 2021-06-29 20:30:53 +08:00
Olaoluwa Osuntokun
198ac3482c Merge pull request #5332 from yyforyongyu/5259-routing-fix-state
routing: fix payment state and refactor payment lifecycle tests
2021-06-24 18:42:17 -07:00
yyforyongyu
193d149d48 itest: test channel policy update in private channels 2021-06-23 20:35:28 +08:00
carla
6aa37066b2 server: send 0 bandwidth hints for links that can't add htlc 2021-06-22 15:39:33 +02:00
Conner Fromknecht
ef392dcd0c lntest: add amp invoice test 2021-05-10 22:02:15 -07:00
Andras Banki-Horvath
5d8488871c itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
Johan T. Halseth
13c00127da itest: add SendPayment AMP itest 2021-04-27 09:47:24 +02:00
carla
2e39edd6bd itest/test: add test for expired hold invoices
This commit adds a test for a hold invoice which is accepted
off-chain, and held by the recipient until it expired and
the payer force-closes the channel. With this test we
demonstrate two bugs in our handling of hold invoice state
in the invoice registry when we expire on chain:
- Htlcs not updated: even when we've timed out, we don't
  update the htlc state accordingly.
- Invoice can be settled: the invoice can be settled even
  though it's expired on chain.
2021-04-23 08:19:51 +02:00
Conner Fromknecht
730b718208 lntest: add AMP itest 2021-04-07 12:09:47 -07:00
Wilmer Paulino
983f402369 itest: add wallet import cases 2021-04-05 15:41:12 -07:00
Elliott Jin
215bf637ea itest: add test for new UpdateChanStatus RPC 2021-02-24 07:13:29 -08:00
Johan T. Halseth
8c78f20ffa itest: add testAnchorReservedValue
We test that Alice as expected will not be allowed to spend her wallet
balance below the reserved amount.
2021-01-19 20:06:52 +01:00
Oliver Gugger
24adf475ce lnd_test: add integration tests for stateless init 2020-11-07 11:24:35 +01:00
Oliver Gugger
a606f462bc itest: move longest test to beginning
To make sure the test that takes the longest overall time is always
started first, independent of the number of test tranches we run, we
move it to the beginning of the list. Because that test involves a lot
of waiting, it allows us to play around with the number of tranches more
efficiently.
2020-11-04 11:03:37 +01:00
Oliver Gugger
9bbf134237 itest: split tests into dynamic tranches 2020-11-04 11:03:29 +01:00
Olaoluwa Osuntokun
719e32830d lntest: fix most linter warnings, silence rest
We fix all linter issues except for the 'lostcontext' and 'unparam' ones
as those are too numerous and would increase the diff even more.
Therefore we silence them in the itest directory for now.
Because the linter is still not build tag aware, we also have to silence
the unused and deadcode sub linters to not get false positives.
2020-09-21 21:16:31 +02:00
Olaoluwa Osuntokun
c769247198 lntest: allow the main test files to be buildable w/o the rpctest build tag
In this commit, we modify our build tag set up to allow the main test
files to be buildable w/o the current rpctest tag. We do this so that
those of us that use extensions which will compile live files like
vim-go can once again fix compile errors as we go in our editors.

In order to do this, we now make an external `testsCases` variable, and
have two variants: one that's empty (no build tag), and one that's fully
populated with all our tests (build tag active). As a result, the main
file will now always build regardless of if the build tag is active or
not, but we'll only actually execute tests if the `testCases` variable
has been populated.

As sample run w/ the tag off:
```
=== RUN   TestLightningNetworkDaemon
--- PASS: TestLightningNetworkDaemon (0.00s)
PASS
ok  	github.com/lightningnetwork/lnd/lntest/itest	0.051s
```
2020-09-21 21:16:31 +02:00