Browse Source

test: actually wait for the TestAgent to be fully shutdown (#6441)

pull/6463/head
R.B. Boyer 5 years ago committed by GitHub
parent
commit
a86e63f81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      agent/testagent.go

6
agent/testagent.go

@ -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…
Cancel
Save