Update golangci-lint

This commit is contained in:
Ludovic Fernandez 2019-09-10 17:52:04 +02:00 committed by Traefiker Bot
parent fb8edd86d5
commit 6e8138e19b
7 changed files with 17 additions and 18 deletions

View file

@ -2,7 +2,6 @@ package integration
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
@ -745,9 +744,10 @@ func (s *SimpleSuite) TestMirrorCanceled(c *check.C) {
req, err := http.NewRequest(http.MethodGet, "http://127.0.0.1:8000/whoami", nil)
c.Assert(err, checker.IsNil)
newCtx, _ := context.WithTimeout(req.Context(), time.Second)
req = req.WithContext(newCtx)
http.DefaultClient.Do(req)
client := &http.Client{
Timeout: time.Second,
}
_, _ = client.Do(req)
}
countTotal := atomic.LoadInt32(&count)