mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-11 21:32:06 +01:00
lntest+itest: rename AssertNumEdges to AssertNumActiveEdges
To properly reflect what the assertion is.
This commit is contained in:
@@ -237,17 +237,17 @@ func testUnannouncedChannels(ht *lntest.HarnessTest) {
|
||||
fundingChanPoint := ht.WaitForChannelOpenEvent(chanOpenUpdate)
|
||||
|
||||
// Alice should have 1 edge in her graph.
|
||||
ht.AssertNumEdges(alice, 1, true)
|
||||
ht.AssertNumActiveEdges(alice, 1, true)
|
||||
|
||||
// Channels should not be announced yet, hence Alice should have no
|
||||
// announced edges in her graph.
|
||||
ht.AssertNumEdges(alice, 0, false)
|
||||
ht.AssertNumActiveEdges(alice, 0, false)
|
||||
|
||||
// Mine 4 more blocks, and check that the channel is now announced.
|
||||
ht.MineBlocks(4)
|
||||
|
||||
// Give the network a chance to learn that auth proof is confirmed.
|
||||
ht.AssertNumEdges(alice, 1, false)
|
||||
ht.AssertNumActiveEdges(alice, 1, false)
|
||||
|
||||
// Close the channel used during the test.
|
||||
ht.CloseChannel(alice, fundingChanPoint)
|
||||
|
||||
Reference in New Issue
Block a user