Fix unstable parallel tests (#202)

* update interface tests and configuration messages

* little debug

* little debug on both errors

* print all devs

* list of devices

* debug func

* handle interface close

* debug socks

* debug socks

* if ports match

* use random assigned ports

* remove unused const

* close management client connection when stopping engine

* GracefulStop when management clients are closed

* enable workflows on PRs too

* remove iface_test debug code
This commit is contained in:
Maycon Santos
2022-01-25 09:40:28 +01:00
committed by GitHub
parent 8ab6eb1cf4
commit 0739038d51
12 changed files with 87 additions and 47 deletions

View File

@ -96,7 +96,13 @@ func (e *Engine) Stop() error {
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()
err := e.removeAllPeers()
err := e.mgmClient.Close()
if err != nil {
log.Errorf("failed closing engine's management client: %v", err)
return err
}
err = e.removeAllPeers()
if err != nil {
return err
}