From 11f02de3b35c2dc998820232d615e8aba909513a Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 16 Jul 2018 18:27:10 -0700 Subject: [PATCH] htlcswitch/link_test: removes unnecessary WaitForShutdown The new RemoveLink method blocks until the link has been fully stopped, so we no longer need to wait for it explicitly. --- htlcswitch/link_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index 540dd937..6b87d445 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -3709,7 +3709,6 @@ func (h *persistentLinkHarness) restart(restartSwitch bool, // First, remove the link from the switch. h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID()) - h.coreLink.WaitForShutdown() var htlcSwitch *Switch if restartSwitch {