Skip to content

Commit 8b8f0c4

Browse files
committed
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.
1 parent 66b3501 commit 8b8f0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itest/lnd_switch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func testSwitchOfflineDelivery(ht *lntest.HarnessTest) {
103103
ht.DisconnectNodes(s.dave, s.alice)
104104

105105
// Then, reconnect them to ensure Dave doesn't just fail back the htlc.
106-
ht.ConnectNodes(s.dave, s.alice)
106+
ht.EnsureConnected(s.dave, s.alice)
107107

108108
// Wait to ensure that the payment remain are not failed back after
109109
// reconnecting. All node should report the number payments initiated

0 commit comments

Comments
 (0)