itest: remove direct reference to stanby nodes

Prepares the upcoming refactor. We now never call `ht.Alice` directly,
instead, we always init `alice := ht.Alice` so it's easier to see how
they are removed in a following commit.
This commit is contained in:
yyforyongyu
2024-10-26 16:24:44 +08:00
parent ef167835dd
commit 3eda87fff9
16 changed files with 157 additions and 108 deletions

View File

@@ -402,14 +402,16 @@ func testUnconfirmedChannelFunding(ht *lntest.HarnessTest) {
// testChannelFundingInputTypes tests that any type of supported input type can
// be used to fund channels.
func testChannelFundingInputTypes(ht *lntest.HarnessTest) {
alice := ht.Alice
// We'll start off by creating a node for Carol.
carol := ht.NewNode("Carol", nil)
// Now, we'll connect her to Alice so that they can open a
// channel together.
ht.ConnectNodes(carol, ht.Alice)
ht.ConnectNodes(carol, alice)
runChannelFundingInputTypes(ht, ht.Alice, carol)
runChannelFundingInputTypes(ht, alice, carol)
}
// runChannelFundingInputTypes tests that any type of supported input type can