Find one escaped go vet error:
```
$ cd pkg/httputils/
$ go vet .
httputils_test.go:28: arg response for printf verb %q of wrong type:
*net/http.Response
```
You can also find it with
```
$ go vet github.com/docker/docker/pkg/httputils/
```
or
```
$ go vet ./...
```
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
| ... | ... |
@@ -24,7 +24,7 @@ func TestDownload(t *testing.T) {
|
| 24 | 24 |
response.Body.Close() |
| 25 | 25 |
|
| 26 | 26 |
if err != nil || string(actual) != expected {
|
| 27 |
- t.Fatalf("Expected the response %q, got err:%q, response:%q, actual:%q", expected, err, response, string(actual))
|
|
| 27 |
+ t.Fatalf("Expected the response %q, got err:%q, actual:%q", expected, err, string(actual))
|
|
| 28 | 28 |
} |
| 29 | 29 |
} |
| 30 | 30 |
|