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.
This commit is contained in:
Conner Fromknecht 2018-07-16 18:27:10 -07:00 committed by Conner Fromknecht
parent b507d265b4
commit 11f02de3b3
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -3709,7 +3709,6 @@ func (h *persistentLinkHarness) restart(restartSwitch bool,
// First, remove the link from the switch. // First, remove the link from the switch.
h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID()) h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID())
h.coreLink.WaitForShutdown()
var htlcSwitch *Switch var htlcSwitch *Switch
if restartSwitch { if restartSwitch {