Commit graph

7 commits

Author SHA1 Message Date
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
692cd4bc4f
lnutils+lntemp: move SyncMap to lnutils
This commit moves the `SyncMap` from `lntemp/node` into `lnutils` so it
can be used by other packages.
2023-01-19 07:08:18 +08:00
yyforyongyu
f3ad66b363
lntest+lntest: inherit node's public states when restarting it
This commit changes how a node's state is created during startup. When
it already has states, only its internal states are reset since these
info are only useful for the finished test. The name `InitRPCClients` is
changed to `Initialize` to reflect the fact that it's more than
initializing RPC clients.
2023-01-18 10:53:58 +08:00
yyforyongyu
44b9068de5
itest: refactor testSendPaymentAMP 2023-01-18 10:53:54 +08:00
yyforyongyu
03dae039a7
lntemp: remove balanceCount from node state
Since channels are always closed when tests finish, there's no need to
track them in node's state.
2022-11-17 21:06:13 +08:00
yyforyongyu
cf0e0820d6
lntemp: introduce SyncMap to store type information
This commit replaces the usage of `sync.Map` with the new struct
`SyncMap` to explicitly express the type info used in the map.
2022-10-14 07:25:29 +08:00
yyforyongyu
f8dcebb637
lntemp/node: introduce node state
This commit adds a new package `lntemp/node` and inside it a new struct
`State` is added to track the internal node state. This enables us using
the same running nodes accross tests without wrong uncleaned states.
2022-10-14 07:25:29 +08:00