lntest+itest: rename AssertNumEdges to AssertNumActiveEdges

To properly reflect what the assertion is.
This commit is contained in:
yyforyongyu committed 2024-11-11 20:57:49 +08:00
1 parent 35992e1503
commit d27ff34b04
6 files changed
+57 -18

No files matched your search

+6 -6
View File
@@ -591,12 +591,12 @@ func testPrivateChannels(ht *lntest.HarnessTest) {
// Carol and Alice should know about 4, while Bob and Dave should only
// know about 3, since one channel is private.
ht.AssertNumEdges(alice, 4, true)
ht.AssertNumEdges(alice, 3, false)
ht.AssertNumEdges(bob, 3, true)
ht.AssertNumEdges(carol, 4, true)
ht.AssertNumEdges(carol, 3, false)
ht.AssertNumEdges(dave, 3, true)
ht.AssertNumActiveEdges(alice, 4, true)
ht.AssertNumActiveEdges(alice, 3, false)
ht.AssertNumActiveEdges(bob, 3, true)
ht.AssertNumActiveEdges(carol, 4, true)
ht.AssertNumActiveEdges(carol, 3, false)
ht.AssertNumActiveEdges(dave, 3, true)
// Close all channels.
ht.CloseChannel(alice, chanPointAlice)