From b7816489a14d3ee6f8b2e9e97546cb7307df4c5c Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 8 Nov 2022 14:15:38 +0800 Subject: [PATCH] itest: add temp fix to bring back btcd build --- lntest/itest/assertions.go | 7 +++++++ lntest/itest/lnd_channel_policy_test.go | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/lntest/itest/assertions.go b/lntest/itest/assertions.go index 64b304760..435e7a4a7 100644 --- a/lntest/itest/assertions.go +++ b/lntest/itest/assertions.go @@ -90,6 +90,13 @@ func openChannelAndAssert(t *harnessTest, net *lntest.NetworkHarness, "unable to assert channel existence", ) + // They should also notice this channel from topology subscription. + err = alice.WaitForNetworkChannelOpen(fundingChanPoint) + require.NoError(t.t, err) + + err = bob.WaitForNetworkChannelOpen(fundingChanPoint) + require.NoError(t.t, err) + return fundingChanPoint } diff --git a/lntest/itest/lnd_channel_policy_test.go b/lntest/itest/lnd_channel_policy_test.go index 857fe0a1e..638878933 100644 --- a/lntest/itest/lnd_channel_policy_test.go +++ b/lntest/itest/lnd_channel_policy_test.go @@ -739,6 +739,10 @@ func testUpdateChannelPolicyForPrivateChannel(net *lntest.NetworkHarness, ) defer closeChannelAndAssert(t, net, net.Bob, chanPointBobCarol, false) + // Carol should be aware of the channel between Alice and Bob. + err = carol.WaitForNetworkChannelOpen(chanPointAliceBob) + require.NoError(t.t, err) + // Get Bob's funding point. bobChanTXID, err := lnrpc.GetChanPointFundingTxid(chanPointBobCarol) require.NoError(t.t, err, "unable to get txid")