From 31be342790f48caee082d6dea93ee763a500768a Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Mon, 14 Aug 2017 10:49:02 +0800 Subject: [PATCH] fix(test): not export field --- routes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes_test.go b/routes_test.go index 22fd2e61..b44b6431 100644 --- a/routes_test.go +++ b/routes_test.go @@ -358,7 +358,7 @@ func TestRouterNotFound(t *testing.T) { testRoutes := []struct { route string code int - Location string + location string }{ {"/path/", 301, "/path"}, // TSR -/ {"/dir", 301, "/dir/"}, // TSR +/ @@ -374,7 +374,7 @@ func TestRouterNotFound(t *testing.T) { w := performRequest(router, "GET", tr.route) assert.Equal(t, w.Code, tr.code) if w.Code != 404 { - assert.Equal(t, fmt.Sprint(w.Header().Get("Location")), tr.Location) + assert.Equal(t, fmt.Sprint(w.Header().Get("Location")), tr.location) } }