itest: remove the use of standby nodes

This commit removes the usage of the standby nodes and uses
`CreateSimpleNetwork` when applicable. Also introduces a helper method
`NewNodeWithCoins` to quickly start a node with funds.
This commit is contained in:
yyforyongyu committed 2024-12-20 19:38:05 +08:00
1 parent 3eda87fff9
commit de8f14bed2
44 files changed
+321 -250

No files matched your search

+2 -3
View File
@@ -14,8 +14,6 @@ import (
// types (within the message type range usually reserved for protocol messages)
// via the send and subscribe custom message APIs.
func testCustomMessage(ht *lntest.HarnessTest) {
alice, bob := ht.Alice, ht.Bob
var (
overrideType1 uint32 = 554
overrideType2 uint32 = 555
@@ -27,7 +25,8 @@ func testCustomMessage(ht *lntest.HarnessTest) {
extraArgs := []string{
fmt.Sprintf(msgOverrideArg, overrideType1),
}
ht.RestartNodeWithExtraArgs(alice, extraArgs)
alice := ht.NewNode("Alice", extraArgs)
bob := ht.NewNode("Bob", nil)
// Subscribe Alice to custom messages before we send any, so that we
// don't miss any.