diff options
Diffstat (limited to 'modules/test/context_tests.go')
-rw-r--r-- | modules/test/context_tests.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go index da15b64395..887446d716 100644 --- a/modules/test/context_tests.go +++ b/modules/test/context_tests.go @@ -34,7 +34,9 @@ func MockContext(t *testing.T, path string) *context.Context { macaronContext.Data = map[string]interface{}{} return &context.Context{ Context: &macaronContext, - Flash: &session.Flash{}, + Flash: &session.Flash{ + Values: make(url.Values), + }, } } |