Controlled polling interval without keepalives to avoid HTTP errors in integration test.
This commit is contained in:
@@ -99,6 +99,9 @@ func (p *syncthingProcess) stop() {
|
||||
func (p *syncthingProcess) get(path string) (*http.Response, error) {
|
||||
client := &http.Client{
|
||||
Timeout: 2 * time.Second,
|
||||
Transport: &http.Transport{
|
||||
DisableKeepAlives: true,
|
||||
},
|
||||
}
|
||||
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:%d%s", p.port, path), nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user