mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-02 22:50:18 +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.stop = true
|
||||||
p.eventMut.Unlock()
|
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
|
return nil, err
|
||||||
}
|
}
|
||||||
p.cmd.Wait()
|
p.cmd.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user