fix(test): not export field

This commit is contained in:
Eason Lin 2017-08-14 10:49:02 +08:00
parent bf27dc6e96
commit 31be342790

View File

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