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:
1 file changed
+1
-1
@@ -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