diff --git a/cmd/f3.go b/cmd/f3.go index de58702bcf..61da4b6bad 100644 --- a/cmd/f3.go +++ b/cmd/f3.go @@ -85,7 +85,7 @@ func getAuthenticationSource(ctx context.Context, authenticationSource string) ( } func RunF3(stdCtx context.Context, ctx *cli.Context) error { - doer, err := user_model.GetAdminUser() + doer, err := user_model.GetAdminUser(stdCtx) if err != nil { return err } diff --git a/tests/integration/f3_test.go b/tests/integration/f3_test.go index 1c3ab2b02b..b6bafdf850 100644 --- a/tests/integration/f3_test.go +++ b/tests/integration/f3_test.go @@ -77,7 +77,7 @@ func TestF3(t *testing.T) { // // Step 2: mirror the fixture into Forgejo // - doer, err := user_model.GetAdminUser() + doer, err := user_model.GetAdminUser(context.Background()) assert.NoError(t, err) forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, 0) options := f3_common.NewMirrorOptionsRecurse() @@ -233,7 +233,7 @@ func TestF3UserMapping(t *testing.T) { } defer createUser(context.Background(), t, gitlabUser)() - doer, err := user_model.GetAdminUser() + doer, err := user_model.GetAdminUser(context.Background()) assert.NoError(t, err) forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, gitlab.ID) options := f3_common.NewMirrorOptionsRecurse()