mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +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.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
|
||||
}
|
||||
p.cmd.Wait()
|
||||
|
Loading…
Reference in New Issue
Block a user