itest+lntest: make sure states are cleaned when tests end

This commit changes how the node's state is updated to make sure the
test cleans up the node's state.

Also `testLookupHtlcResolution` is fixed with a cleanup.
This commit is contained in:
yyforyongyu committed 2023-03-15 00:01:40 +08:00
1 parent 098bb36114
commit 20e53e85b4
2 files changed
+41 -21

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ func testLookupHtlcResolution(ht *lntest.HarnessTest) {
cp := ht.OpenChannel(
alice, carol, lntest.OpenChannelParams{Amt: chanAmt},
)
defer ht.CloseChannel(alice, cp)
// Channel should be ready for payments.
const payAmt = 100