itest: move channel force closes into one sub test var

This commit is contained in:
yyforyongyu committed 2025-01-26 09:16:02 +08:00
1 parent e4b205cd90
commit bc8c1643c6
3 files changed
+20 -14

No files matched your search

+15
View File
@@ -18,6 +18,21 @@ import (
"github.com/stretchr/testify/require"
)
var channelForceCloseTestCases = []*lntest.TestCase{
{
Name: "anchor",
TestFunc: testChannelForceClosureAnchor,
},
{
Name: "simple taproot",
TestFunc: testChannelForceClosureSimpleTaproot,
},
{
Name: "wrong preimage",
TestFunc: testFailingChannel,
},
}
const pushAmt = btcutil.Amount(5e5)
// testChannelForceClosureAnchor runs `runChannelForceClosureTest` with anchor