diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2011-08-01 11:50:50 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2011-08-01 11:50:50 +1000 |
| commit | 8800f7cb551616efe941e83f9c0a5fb53599e57d (patch) | |
| tree | 3413b1aea4cd5599e41c7837caba9fd37eb7940b /src/pkg/http | |
| parent | 05f734c8b4e24363fd1b39a41b153179a6aee8d3 (diff) | |
| download | go-8800f7cb551616efe941e83f9c0a5fb53599e57d.tar.xz | |
http: correct format flags when printing errors during tests
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4809065
Diffstat (limited to 'src/pkg/http')
| -rw-r--r-- | src/pkg/http/fs_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/http/fs_test.go b/src/pkg/http/fs_test.go index 4d465d89a6..14f1645c3c 100644 --- a/src/pkg/http/fs_test.go +++ b/src/pkg/http/fs_test.go @@ -223,7 +223,7 @@ func TestServeFileContentType(t *testing.T) { t.Fatal(err) } if h := resp.Header.Get("Content-Type"); h != want { - t.Errorf("Content-Type mismatch: got %d, want %d", h, want) + t.Errorf("Content-Type mismatch: got %q, want %q", h, want) } } get("text/plain; charset=utf-8") @@ -257,7 +257,7 @@ func TestServeFileWithContentEncoding(t *testing.T) { t.Fatal(err) } if g, e := resp.ContentLength, int64(-1); g != e { - t.Errorf("Content-Length mismatch: got %q, want %q", g, e) + t.Errorf("Content-Length mismatch: got %d, want %d", g, e) } } |
