Skip to content

Commit b9357a2

Browse files
committed
fix test
1 parent c9e8f8e commit b9357a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/contexttest/context_tests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func MockAPIContext(t *testing.T, reqPath string) (*context.APIContext, *httptes
8787
base := context.NewBaseContext(resp, req)
8888
base.Data = middleware.GetContextData(req.Context())
8989
base.Locale = &translation.MockLocale{}
90-
ctx := &context.APIContext{Base: base}
90+
ctx := &context.APIContext{Base: base, Repo: &context.Repository{}}
9191
chiCtx := chi.NewRouteContext()
9292
ctx.SetContextValue(chi.RouteCtxKey, chiCtx)
9393
return ctx, resp

0 commit comments

Comments
 (0)