mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
Don't error integration tests on unexpected EOF at Stop()
This commit is contained in:
parent
42dc51784e
commit
e205f8afbb
@ -129,7 +129,9 @@ func (p *Process) Stop() (*os.ProcessState, error) {
|
|||||||
p.stop = true
|
p.stop = true
|
||||||
p.eventMut.Unlock()
|
p.eventMut.Unlock()
|
||||||
|
|
||||||
if _, err := p.Post("/rest/system/shutdown", nil); err != nil {
|
if _, err := p.Post("/rest/system/shutdown", nil); err != nil && err != io.ErrUnexpectedEOF {
|
||||||
|
// Unexpected EOF is somewhat expected here, as we may exit before
|
||||||
|
// returning something sensible.
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
p.cmd.Wait()
|
p.cmd.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user