itest: fix flake in testChannelFundingPersistence

This commit is contained in:
yyforyongyu 2023-02-03 01:28:03 +08:00
parent d6043c26a7
commit 4fdce8b448
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -690,6 +690,11 @@ func testChannelFundingPersistence(ht *lntest.HarnessTest) {
chanAlice := ht.AssertChannelExists(alice, chanPoint)
ht.AssertChannelExists(carol, chanPoint)
// Make sure Alice and Carol have seen the channel in their network
// topology.
ht.AssertTopologyChannelOpen(alice, chanPoint)
ht.AssertTopologyChannelOpen(carol, chanPoint)
// Create an additional check for our channel assertion that will
// check that our label is as expected.
shortChanID := lnwire.NewShortChanIDFromInt(chanAlice.ChanId)