mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
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
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…
x
Reference in New Issue
Block a user