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
yyforyongyu
9943bb8539
itest: refactor testSwitchOfflineDeliveryOutgoingOffline
2023-01-18 10:53:53 +08:00
yyforyongyu
874689719e
itest: refactor testSwitchOfflineDeliveryPersistence
2023-01-18 10:53:53 +08:00
yyforyongyu
476434f546
lntemp+itest: refactor testSwitchOfflineDelivery
2023-01-18 10:53:53 +08:00
yyforyongyu
baeb78e2cc
lntemp+itest: refactor testSwitchCircuitPersistence
2023-01-18 10:53:52 +08:00
yyforyongyu
0735522194
multi: fix make fmt
2022-08-23 22:10:24 +08:00
eugene
a7f5b89cf3
itest: update switch delivery tests with more robust reconnect logic
2022-06-29 13:50:03 -04:00
Oliver Gugger
7dfe4018ce
multi: use btcd's btcec/v2 and btcutil modules
...
This commit was previously split into the following parts to ease
review:
- 2d746f68: replace imports
- 4008f0fd: use ecdsa.Signature
- 849e33d1: remove btcec.S256()
- b8f6ebbd: use v2 library correctly
- fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00
Oliver Gugger
895a2e497b
multi: formatting and comment fixes
2022-02-10 11:02:02 +01:00
yyforyongyu
26ed64fa52
itest: manage context within HarnessNode
...
This commit removes the context as a param needed when calling methods
of HarnessNode. This change moves the context management inside
HarnessNode, aside from saving us a few lines, it makes the context
creation/timeout less error-prone.
2021-12-04 14:54:36 +08:00
yyforyongyu
a6c5255e77
itest: manage context timeout inside completePaymentRequests
2021-08-24 12:28:39 +08:00
yyforyongyu
5a94919b7e
itest: manage context timeout inside network harness
...
This is the last commit to refactor the context management such that all
the timeout are managed inside the network harness.
2021-08-24 12:28:35 +08:00
yyforyongyu
74f8fe482d
itest: manage context inside EnsureConnected
2021-08-24 11:06:44 +08:00
yyforyongyu
d10d1e3e24
itest: manage context inside SendCoins
2021-08-24 11:06:44 +08:00
yyforyongyu
8de495b96b
itest: initialize context inside ConnectNodes
2021-08-24 11:06:43 +08:00
yyforyongyu
dca20d80a7
itest: fix context leak in openChannelAndAssert
...
In this commit, we put the context initialization inside
openChannelAndAssert, thus saving us a few lines and making sure the
context is always properly handled.
2021-08-24 11:06:43 +08:00
yyforyongyu
8eddc50beb
itest: remove context creations outside close channel assertion
2021-08-11 12:44:39 +08:00
yyforyongyu
d28e67ddb0
itest: fix make lint
2021-07-13 15:01:43 +08:00
yyforyongyu
e3f2cf1711
itest: move switch related tests into one file
...
This commit creates the lnd_switch_test.go file to hold switch related
tests, further breaking down the lnd_test.go file.
2021-07-13 14:58:58 +08:00