]> Cypherpunks repositories - gostls13.git/commitdiff
http: correct format flags when printing errors during tests
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 1 Aug 2011 01:50:50 +0000 (11:50 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 1 Aug 2011 01:50:50 +0000 (11:50 +1000)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4809065

src/pkg/http/fs_test.go

index 4d465d89a675b8e5ac9e695371b33a63fce7bb88..14f1645c3c0f169f0932c52bc4b21eb1d627178a 100644 (file)
@@ -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)
        }
 }