test: Get integration tests up to speed (config, build and test fixes) (#5962)

This commit is contained in:
Simon Frei
2019-08-20 10:17:11 +02:00
committed by GitHub
parent 90b70c7a16
commit 2d124e053c
8 changed files with 59 additions and 21 deletions

View File

@@ -155,6 +155,11 @@ func (p *Process) Stop() (*os.ProcessState, error) {
return p.cmd.ProcessState, p.stopErr
}
// Stopped returns a channel that will be closed when Syncthing has stopped.
func (p *Process) Stopped() chan struct{} {
return p.stopped
}
// Get performs an HTTP GET and returns the bytes and/or an error. Any non-200
// return code is returned as an error.
func (p *Process) Get(path string) ([]byte, error) {