mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Use soft shutdown when running tests
This commit is contained in:
parent
1836ef2884
commit
7d3257b222
@ -129,7 +129,7 @@ func (p *Process) Stop() (*os.ProcessState, error) {
|
||||
p.stop = true
|
||||
p.eventMut.Unlock()
|
||||
|
||||
if err := p.cmd.Process.Signal(os.Kill); err != nil {
|
||||
if _, err := p.Post("/rest/system/shutdown", nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.cmd.Wait()
|
||||
|
Loading…
Reference in New Issue
Block a user