mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lntest/test: ensure nodes connected before disconnecting [skip ci]
This commit is contained in:
parent
234fdc6c9c
commit
5e8f86a9b6
1 changed files with 4 additions and 0 deletions
|
@ -605,6 +605,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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue