Skip to content

Commit 7bf68fa

Browse files
committed
itest: update wipe_forwarding_packages test for deferred cleanup
Update the testWipeForwardingPackages integration test to restart the nodes after channel closure confirmation. This is necessary because forwarding packages are now deleted during CleanupPendingCloses at startup, rather than during CloseChannel.
1 parent 08d27f2 commit 7bf68fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itest/lnd_wipe_fwdpkgs_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ func testWipeForwardingPackages(ht *lntest.HarnessTest) {
8181
// Mine 1 block to get the two closing transactions confirmed.
8282
ht.MineBlocksAndAssertNumTxes(1, 2)
8383

84+
// Restart the nodes to trigger CleanupPendingCloses, which deletes
85+
// the forwarding packages for closed channels.
86+
ht.RestartNode(bob)
87+
ht.RestartNode(alice)
88+
8489
// Now that the closing transaction is confirmed, the above waiting
8590
// close channel should now become pending force closed channel.
8691
pendingAB = ht.AssertChannelPendingForceClose(bob, chanPointAB).Channel

0 commit comments

Comments
 (0)