@@ -264,6 +264,7 @@ func testSwitchOfflineDeliveryOutgoingOffline(ht *lntest.HarnessTest) {
264
264
// three channels. Note that we won't call the cleanUp function here as
265
265
// we will manually stop the node Carol and her channel.
266
266
s := setupScenarioFourNodes (ht )
267
+ defer s .cleanUp ()
267
268
268
269
// Disconnect the two intermediaries, Alice and Dave, so that when carol
269
270
// restarts, the response will be held by Dave.
@@ -296,7 +297,7 @@ func testSwitchOfflineDeliveryOutgoingOffline(ht *lntest.HarnessTest) {
296
297
// Shutdown carol and leave her offline for the rest of the test. This
297
298
// is critical, as we wish to see if Dave can propragate settles even if
298
299
// the outgoing link is never revived.
299
- ht .Shutdown (s .carol )
300
+ restartCarol := ht .SuspendNode (s .carol )
300
301
301
302
// Now restart Dave, ensuring he is both persisting the settles, and is
302
303
// able to reforward them to Alice after recovering from a restart.
@@ -339,8 +340,8 @@ func testSwitchOfflineDeliveryOutgoingOffline(ht *lntest.HarnessTest) {
339
340
amountPaid + (baseFee * numPayments )* 2 , int64 (0 ),
340
341
)
341
342
342
- ht . CloseChannel ( s . alice , s . chanPointAliceBob )
343
- ht . CloseChannel ( s . dave , s . chanPointDaveAlice )
343
+ // Finally, restart Carol so the cleanup process can be finished.
344
+ require . NoError ( ht , restartCarol () )
344
345
}
345
346
346
347
// scenarioFourNodes specifies a scenario which we have a topology that has
0 commit comments