From 95d642a637d399770d9f13d31e733f0913b0083d Mon Sep 17 00:00:00 2001 From: Acconut Date: Mon, 23 Mar 2015 18:17:21 +0100 Subject: [PATCH] addd status text to failed tests --- handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler_test.go b/handler_test.go index caec92c..6c5a41b 100644 --- a/handler_test.go +++ b/handler_test.go @@ -57,7 +57,7 @@ func (test *httpTest) Run(handler http.Handler, t *testing.T) { handler.ServeHTTP(w, req) if w.Code != test.Code { - t.Errorf("Expected %v as status code (got %v)", test.Code, w.Code) + t.Errorf("Expected %v %s as status code (got %v %s)", test.Code, http.StatusText(test.Code), w.Code, http.StatusText(w.Code)) } for key, value := range test.ResHeader {