From 5e8f86a9b64c9f6d07fe5fcf65c74413aebd7035 Mon Sep 17 00:00:00 2001 From: carla Date: Tue, 25 Jan 2022 14:22:55 +0200 Subject: [PATCH] lntest/test: ensure nodes connected before disconnecting [skip ci] --- lntest/itest/lnd_channel_policy_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lntest/itest/lnd_channel_policy_test.go b/lntest/itest/lnd_channel_policy_test.go index f8426b211..30ce58e1c 100644 --- a/lntest/itest/lnd_channel_policy_test.go +++ b/lntest/itest/lnd_channel_policy_test.go @@ -605,6 +605,10 @@ func testSendUpdateDisableChannel(net *lntest.NetworkHarness, t *harnessTest) { expectedPolicy.Disabled = false assertPolicyUpdate(eve, expectedPolicy, chanPointEveCarol) + // Wait until Carol and Eve are reconnected before we disconnect them + // again. + net.EnsureConnected(t.t, eve, carol) + // Now we'll test a long disconnection. Disconnect Carol and Eve and // ensure they both detect each other as disabled. Their min backoffs // are high enough to not interfere with disabling logic.