remove a race condition in sdk testutil server stop (#10342)
* remove a race condition in sdk testutil server stop * ensure the process has actually stopped
This commit is contained in:
parent
99fc5354e7
commit
728165f31e
|
@ -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