Merge pull request #9600 from lightningnetwork/yy-more-flakes

lntest+itest: document and fix more flakes
This commit is contained in:
Yong authored and GitHub committed 2025-03-21 03:23:02 +08:00
commit 09b6745086
10 files changed
+104 -31

No files matched your search

+7 -4
View File
@@ -222,11 +222,14 @@ func coopCloseWithHTLCsWithRestart(ht *lntest.HarnessTest, alice,
ht.AssertChannelInactive(bob, chanPoint)
ht.AssertChannelInactive(alice, chanPoint)
// Now restart Alice and Bob.
ht.RestartNode(alice)
ht.RestartNode(bob)
// Shutdown both Alice and Bob.
restartAlice := ht.SuspendNode(alice)
restartBob := ht.SuspendNode(bob)
ht.AssertConnected(alice, bob)
// Once shutdown, restart and connect them.
require.NoError(ht, restartAlice())
require.NoError(ht, restartBob())
ht.EnsureConnected(alice, bob)
// Show that both nodes still see the channel as waiting for close after
// the restart.