yyforyongyu
72f3f41d41
itest: remove unnecessary channel close and node shutdown
...
Since we don't have standby nodes anymore, we don't need to close the
channels when the test finishes. Previously we would do so to make sure
the standby nodes have a clean state for the next test case, which is no
longer relevant.
2024-12-20 19:38:06 +08:00
yyforyongyu
de8f14bed2
itest: remove the use of standby nodes
...
This commit removes the usage of the standby nodes and uses
`CreateSimpleNetwork` when applicable. Also introduces a helper method
`NewNodeWithCoins` to quickly start a node with funds.
2024-12-20 19:38:05 +08:00
yyforyongyu
e1d5bbf171
itest: remove unnecessary force close
2024-12-20 17:54:11 +08:00
yyforyongyu
e45005b310
itest: fix testPaymentSucceededHTLCRemoteSwept
2024-12-20 17:54:09 +08:00
yyforyongyu
653a8ac55e
lntest+itest: add new method AssertChannelInGraph
...
This commit replaces `AssertTopologyChannelOpen` with
`AssertChannelInGraph`, which asserts a given channel edge is found.
`AssertTopologyChannelOpen` only asserts a given edge has been received
via the topology subscription, while we need to make sure the channel is
in the graph before continuing our tests.
2024-11-12 23:55:40 +08:00
yyforyongyu
35992e1503
lntest+itest: expore method createSimpleNetwork
...
So it can be used via `ht.CreateSimpleNetwork`.
2024-11-11 20:57:49 +08:00
ziggie
7b2da94750
multi: deprecate dust-treshold config value
...
Replace ambigious config value "dust-treshold" with a more clear
"channel-max-fee-exposure" exposure value. The old value is
deprecated and will be removed in the near future.
2024-11-06 18:16:06 +01:00
yyforyongyu
785e058b77
itest: fix flake in testPaymentFailureReasonCanceled
...
Fix the case,
```
--- FAIL: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled (20.86s)
harness.go:2113:
Error Trace: /home/runner/work/lnd/lnd/lntest/harness.go:2113
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1183
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1138
/home/runner/work/lnd/lnd/lntest/harness.go:396
/home/runner/work/lnd/lnd/itest/lnd_test.go:139
Error: err from HTLC interceptor stream
Test: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled
Messages: received err from HTLC interceptor stream: rpc error: code = Unknown desc = interceptor already exists
```
2024-10-29 15:32:17 +08:00
yyforyongyu
d28d5d7a47
itest: add testSendToRouteFailHTLCTimeout
to check SendToRouteV2
2024-08-07 22:17:58 +08:00
yyforyongyu
941716d60e
lntest+itest: add new test testPaymentHTLCTimeout
...
This commit adds a new test case to validate that when an HTLC has timed
out, the corresponding payment is marked as failed.
2024-08-07 22:17:58 +08:00
Slyghtning
0273eac4b2
itest: payment failure reason canceled
2024-08-01 10:25:22 +02:00
Slyghtning
653226d29c
itest: format and typo fixes
2024-08-01 10:24:08 +02:00
Eugene Siegel
c1138af4ab
itest: modify async_bidirectional_payments itest to pass
2024-07-29 14:13:22 -04:00
yyforyongyu
221e7ff898
itest: update testListPayments
to precisely test timestamp filters
2024-02-05 15:23:57 +08:00
Keagan McClelland
109265c77a
multi: make static remote key compulsory
2024-01-11 13:58:01 -08:00
yyforyongyu
62d240bba1
itest: add testSendDirectPayment
...
Adds a new test to check direct payments between two nodes. The fee rate
is tuned to 1 sat/vb to catch edge cases.
2023-09-28 19:42:11 +08:00
Olaoluwa Osuntokun
6c3a55d89c
itest: add remote signer test case for taproot chans
...
This ensures that taproot chans can be used with the remote signer
configuration.
2023-09-18 11:42:20 -07:00
yyforyongyu
8b9ccfe310
itest: fix test async_bidirectional_payments
2023-02-23 21:56:09 +08:00
yyforyongyu
9d1d629001
itest+lntest: migrate lntemp
to lntest
...
This commit performs the takeover that `lntemp` is now promoted to be
`lntest`, and the scaffolding is now removed as all the refactoring is
finished!
2023-02-23 21:56:09 +08:00
yyforyongyu
106fbeae85
multi: move timeouts into package wait
...
This commit moves the definition of timeout values into package `wait`,
preparing the incoming merging of `lntemp` and `lntest`.
2023-02-23 21:56:08 +08:00
yyforyongyu
0bc86a3b4b
multi: move itest
out of lntest
...
This commit moves all the test cases living in `itest` out of `lntest`,
further making `lntest` an independent package for general testing.
2023-02-23 21:56:08 +08:00