mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-19 02:00:58 +02:00
fix lint
This commit is contained in:
parent
3332475a42
commit
91f5153b02
@ -105,8 +105,9 @@ func TestEnablePasswordSignInFormAndEnablePasskeyAuth(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
mockLinkAccount := func(ctx *context.Context) {
|
||||
authSource := auth_model.Source{ID: 1}
|
||||
gothUser := goth.User{Email: "invalid-email", Name: "."}
|
||||
_ = ctx.Session.Set("linkAccountData", auth.LinkAccountData{auth_model.Source{ID: 1}, gothUser})
|
||||
_ = ctx.Session.Set("linkAccountData", auth.LinkAccountData{AuthSource: authSource, GothUser: gothUser})
|
||||
}
|
||||
|
||||
t.Run("EnablePasswordSignInForm=false", func(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user