htlcswitch/link_test: wait for link shutdown after removal
This commit is contained in:
1 file changed
+1
@@ -3710,6 +3710,7 @@ 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 {
|
||||||
|
|||||||
Reference in new issue
Block a user