mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 18:24:14 +01:00
[F3] GetAdminUser now has a ctx argument
This commit is contained in:
parent
a24bc0b85e
commit
37357a92af
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ func getAuthenticationSource(ctx context.Context, authenticationSource string) (
|
||||||
}
|
}
|
||||||
|
|
||||||
func RunF3(stdCtx context.Context, ctx *cli.Context) error {
|
func RunF3(stdCtx context.Context, ctx *cli.Context) error {
|
||||||
doer, err := user_model.GetAdminUser()
|
doer, err := user_model.GetAdminUser(stdCtx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ func TestF3(t *testing.T) {
|
||||||
//
|
//
|
||||||
// Step 2: mirror the fixture into Forgejo
|
// Step 2: mirror the fixture into Forgejo
|
||||||
//
|
//
|
||||||
doer, err := user_model.GetAdminUser()
|
doer, err := user_model.GetAdminUser(context.Background())
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, 0)
|
forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, 0)
|
||||||
options := f3_common.NewMirrorOptionsRecurse()
|
options := f3_common.NewMirrorOptionsRecurse()
|
||||||
|
@ -233,7 +233,7 @@ func TestF3UserMapping(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer createUser(context.Background(), t, gitlabUser)()
|
defer createUser(context.Background(), t, gitlabUser)()
|
||||||
|
|
||||||
doer, err := user_model.GetAdminUser()
|
doer, err := user_model.GetAdminUser(context.Background())
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, gitlab.ID)
|
forgejoLocal := util.ForgejoForgeRoot(gof3.AllFeatures, doer, gitlab.ID)
|
||||||
options := f3_common.NewMirrorOptionsRecurse()
|
options := f3_common.NewMirrorOptionsRecurse()
|
||||||
|
|
Loading…
Reference in a new issue