mirror of https://github.com/hashicorp/consul
remove a race condition in sdk testutil server stop (#10342)
* remove a race condition in sdk testutil server stop * ensure the process has actually stoppedpull/10371/head
parent
f43993316c
commit
797bfb7b51
|
@ -342,7 +342,7 @@ func (s *TestServer) Stop() error {
|
|||
return err
|
||||
case <-time.After(10 * time.Second):
|
||||
s.cmd.Process.Signal(syscall.SIGABRT)
|
||||
s.cmd.Wait()
|
||||
<-waitDone
|
||||
return fmt.Errorf("timeout waiting for server to stop gracefully")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue