itest+lntest: remove standby nodes

This commit removes the standby nodes Alice and Bob.
This commit is contained in:
yyforyongyu
2024-11-20 14:51:37 +08:00
parent 11c9dd5ff2
commit 00772ae281
3 changed files with 14 additions and 198 deletions

View File

@@ -8,7 +8,6 @@ import (
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
@@ -110,10 +109,6 @@ func TestLightningNetworkDaemon(t *testing.T) {
)
defer harnessTest.Stop()
// Setup standby nodes, Alice and Bob, which will be alive and shared
// among all the test cases.
harnessTest.SetupStandbyNodes()
// Get the current block height.
height := harnessTest.CurrentHeight()
@@ -130,22 +125,7 @@ func TestLightningNetworkDaemon(t *testing.T) {
// avoid overwriting the external harness test that is
// tied to the parent test.
ht := harnessTest.Subtest(t1)
// TODO(yy): split log files.
cleanTestCaseName := strings.ReplaceAll(
testCase.Name, " ", "_",
)
ht.SetTestName(cleanTestCaseName)
logLine := fmt.Sprintf(
"STARTING ============ %v ============\n",
testCase.Name,
)
ht.Alice.AddToLogf(logLine)
ht.Bob.AddToLogf(logLine)
ht.EnsureConnected(ht.Alice, ht.Bob)
ht.SetTestName(testCase.Name)
ht.RunTestCase(testCase)
})