mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-26 08:41:02 +02:00
Merge pull request #6197 from carlaKC/itest-policy-ensureconnected
lntest/test: ensure nodes connected before disconnecting
This commit is contained in:
commit
8d3d8580f9
@ -608,6 +608,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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user