mirror of https://github.com/status-im/consul.git
test: actually wait for the TestAgent to be fully shutdown (#6441)
This commit is contained in:
parent
ac8f3c7431
commit
a86e63f81e
|
@ -288,7 +288,11 @@ func (a *TestAgent) Shutdown() error {
|
|||
|
||||
// shutdown agent before endpoints
|
||||
defer a.Agent.ShutdownEndpoints()
|
||||
return a.Agent.ShutdownAgent()
|
||||
if err := a.Agent.ShutdownAgent(); err != nil {
|
||||
return err
|
||||
}
|
||||
<-a.Agent.ShutdownCh()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *TestAgent) DNSAddr() string {
|
||||
|
|
Loading…
Reference in New Issue