From 8b8f0c4eb426c0a04111ed17b1b5d987bfd22409 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Sun, 3 Nov 2024 08:21:24 +0800 Subject: [PATCH] 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. --- itest/lnd_switch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itest/lnd_switch_test.go b/itest/lnd_switch_test.go index 59e8ce9ce..10be21613 100644 --- a/itest/lnd_switch_test.go +++ b/itest/lnd_switch_test.go @@ -103,7 +103,7 @@ func testSwitchOfflineDelivery(ht *lntest.HarnessTest) { ht.DisconnectNodes(s.dave, s.alice) // 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 // reconnecting. All node should report the number payments initiated