Skip to content

Commit 09694db

Browse files
committed
itest: fix accounts test bug
1 parent 4db583d commit 09694db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

itest/litd_accounts_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ func runAccountSystemTest(t *harnessTest, node *HarnessNode, hostPort,
3131
ctxt, cancel := context.WithTimeout(ctxb, defaultTimeout)
3232
defer cancel()
3333

34+
assertNumChannels(ctxt, t.t, node.LightningClient, 0, 0, 0, 0)
35+
3436
// Before we start opening channels, we want to make sure we don't have
3537
// any leftover funds in the tested node's wallet, so we can always
3638
// exactly calculate what we are supposed to have during our test.
@@ -171,6 +173,7 @@ func runAccountSystemTest(t *harnessTest, node *HarnessNode, hostPort,
171173
// Clean up our channel and payments, so we can start the next test
172174
// iteration with a clean slate.
173175
closeChannelAndAssert(t, net, node, channelOp, false)
176+
assertNumChannels(ctxt, t.t, node.LightningClient, 0, 0, 0, 0)
174177

175178
_, err = node.DeleteAllPayments(ctxt, &lnrpc.DeleteAllPaymentsRequest{
176179
FailedPaymentsOnly: false,

itest/litd_mode_integrated_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,9 @@ func integratedTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
629629
)
630630

631631
ht := newHarnessTest(tt, net)
632+
cfg.RPCAddr()
632633
runAccountSystemTest(
633-
ht, net.Alice, cfg.LitAddr(), cfg.LitTLSCertPath,
634+
ht, net.Alice, cfg.RPCAddr(), cfg.TLSCertPath,
634635
superMacFile, (runNum*2)-1,
635636
)
636637
runAccountSystemTest(

0 commit comments

Comments
 (0)