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

@@ -763,6 +763,8 @@ func testAbandonChannel(ht *lntest.HarnessTest) {
// testSendAllCoins tests that we're able to properly sweep all coins from the
// wallet into a single target address at the specified fee rate.
func testSendAllCoins(ht *lntest.HarnessTest) {
alice := ht.Alice
// First, we'll make a new node, Ainz who'll we'll use to test wallet
// sweeping.
//
@@ -789,7 +791,7 @@ func testSendAllCoins(ht *lntest.HarnessTest) {
// Ensure that we can't send coins to another user's Pubkey.
err = ainz.RPC.SendCoinsAssertErr(&lnrpc.SendCoinsRequest{
Addr: ht.Alice.RPC.GetInfo().IdentityPubkey,
Addr: alice.RPC.GetInfo().IdentityPubkey,
SendAll: true,
Label: sendCoinsLabel,
TargetConf: 6,