Commits

brainman  committed a3889b7 Draft

http: correct format flags when printing errors during tests

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4809065

  • Participants
  • Parent commits fb14801

Comments (0)

Files changed (1)

File src/pkg/http/fs_test.go

 			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")
 		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)
 	}
 }