mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-09 09:15:35 +02:00
itest: fix flake in testSwitchOfflineDelivery
The reconnection will happen automatically when the nodes have a channel, so we just ensure the connection instead of reconnecting directly.
This commit is contained in:
@@ -103,7 +103,7 @@ func testSwitchOfflineDelivery(ht *lntest.HarnessTest) {
|
|||||||
ht.DisconnectNodes(s.dave, s.alice)
|
ht.DisconnectNodes(s.dave, s.alice)
|
||||||
|
|
||||||
// Then, reconnect them to ensure Dave doesn't just fail back the htlc.
|
// Then, reconnect them to ensure Dave doesn't just fail back the htlc.
|
||||||
ht.ConnectNodes(s.dave, s.alice)
|
ht.EnsureConnected(s.dave, s.alice)
|
||||||
|
|
||||||
// Wait to ensure that the payment remain are not failed back after
|
// Wait to ensure that the payment remain are not failed back after
|
||||||
// reconnecting. All node should report the number payments initiated
|
// reconnecting. All node should report the number payments initiated
|
||||||
|
Reference in New Issue
Block a user