mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
itest: move channel force closes into one sub test var
This commit is contained in:
@@ -39,8 +39,8 @@ var excludedTestsWindows = []string{
|
|||||||
"multihop-htlc aggregation simple taproot",
|
"multihop-htlc aggregation simple taproot",
|
||||||
"multihop-htlc aggregation simple taproot zero conf",
|
"multihop-htlc aggregation simple taproot zero conf",
|
||||||
|
|
||||||
"channel force closure anchor",
|
"channel force close-anchor",
|
||||||
"channel force closure simple taproot",
|
"channel force close-simple taproot",
|
||||||
"channel backup restore force close",
|
"channel backup restore force close",
|
||||||
"wipe forwarding packages",
|
"wipe forwarding packages",
|
||||||
|
|
||||||
|
@@ -205,18 +205,6 @@ var allTestCases = []*lntest.TestCase{
|
|||||||
Name: "channel unsettled balance",
|
Name: "channel unsettled balance",
|
||||||
TestFunc: testChannelUnsettledBalance,
|
TestFunc: testChannelUnsettledBalance,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "channel force closure anchor",
|
|
||||||
TestFunc: testChannelForceClosureAnchor,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "channel force closure simple taproot",
|
|
||||||
TestFunc: testChannelForceClosureSimpleTaproot,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "failing channel",
|
|
||||||
TestFunc: testFailingChannel,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "chain kit",
|
Name: "chain kit",
|
||||||
TestFunc: testChainKit,
|
TestFunc: testChainKit,
|
||||||
@@ -736,6 +724,9 @@ func init() {
|
|||||||
allTestCases = appendPrefixed(
|
allTestCases = appendPrefixed(
|
||||||
"send to route", allTestCases, sendToRouteTestCases,
|
"send to route", allTestCases, sendToRouteTestCases,
|
||||||
)
|
)
|
||||||
|
allTestCases = appendPrefixed(
|
||||||
|
"channel force close", allTestCases, channelForceCloseTestCases,
|
||||||
|
)
|
||||||
|
|
||||||
// Prepare the test cases for windows to exclude some of the flaky
|
// Prepare the test cases for windows to exclude some of the flaky
|
||||||
// ones.
|
// ones.
|
||||||
|
@@ -18,6 +18,21 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"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)
|
const pushAmt = btcutil.Amount(5e5)
|
||||||
|
|
||||||
// testChannelForceClosureAnchor runs `runChannelForceClosureTest` with anchor
|
// testChannelForceClosureAnchor runs `runChannelForceClosureTest` with anchor
|
||||||
|
Reference in New Issue
Block a user