lntemp+itest: move utils function into lntemp

This commit is contained in:
yyforyongyu committed 2023-02-23 21:56:09 +08:00
1 parent edba938996
commit 4a9c3449a6
8 files changed
+53 -53

No files matched your search

+2 -2
View File
@@ -72,7 +72,7 @@ func testCommitmentTransactionDeadline(ht *lntemp.HarnessTest) {
setupNode := func(name string) *node.HarnessNode {
// Create the node.
args := []string{"--hodl.exit-settle"}
args = append(args, nodeArgsForCommitType(
args = append(args, lntemp.NodeArgsForCommitType(
lnrpc.CommitmentType_ANCHORS)...,
)
node := ht.NewNode(name, args)
@@ -209,7 +209,7 @@ func testChannelForceClosure(ht *lntemp.HarnessTest) {
success := ht.Run(testName, func(t *testing.T) {
st := ht.Subtest(t)
args := nodeArgsForCommitType(channelType)
args := lntemp.NodeArgsForCommitType(channelType)
alice := st.NewNode("Alice", args)
defer st.Shutdown(alice)