Update golangci-lint
This commit is contained in:
parent
fb8edd86d5
commit
6e8138e19b
7 changed files with 17 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue