Merge pull request #6197 from carlaKC/itest-policy-ensureconnected

lntest/test: ensure nodes connected before disconnecting
This commit is contained in:
Oliver Gugger 2022-01-27 13:20:13 +01:00 committed by GitHub
commit 8d3d8580f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,6 +608,10 @@ func testSendUpdateDisableChannel(net *lntest.NetworkHarness, t *harnessTest) {
expectedPolicy.Disabled = false expectedPolicy.Disabled = false
assertPolicyUpdate(eve, expectedPolicy, chanPointEveCarol) 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 // Now we'll test a long disconnection. Disconnect Carol and Eve and
// ensure they both detect each other as disabled. Their min backoffs // ensure they both detect each other as disabled. Their min backoffs
// are high enough to not interfere with disabling logic. // are high enough to not interfere with disabling logic.