1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix escaped go vet error

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>
This commit is contained in:
Zhang Wei 2017-01-18 00:10:40 +08:00
parent e74623d283
commit 3551893f46

View file

@ -24,7 +24,7 @@ func TestDownload(t *testing.T) {
response.Body.Close() response.Body.Close()
if err != nil || string(actual) != expected { if err != nil || string(actual) != expected {
t.Fatalf("Expected the response %q, got err:%q, response:%q, actual:%q", expected, err, response, string(actual)) t.Fatalf("Expected the response %q, got err:%q, actual:%q", expected, err, string(actual))
} }
} }