mirror of
https://github.com/go-gitea/gitea
synced 2025-10-31 19:38:23 +00:00
Remove incorrect "db.DefaultContext" usages (#35366)
This commit is contained in:
@@ -125,7 +125,7 @@ func TestSignupEmailActive(t *testing.T) {
|
||||
// generate an activation code from lower-cased email
|
||||
activationCode := user_model.GenerateUserTimeLimitCode(&user_model.TimeLimitCodeOptions{Purpose: user_model.TimeLimitCodeActivateAccount}, user)
|
||||
// and update the user email to case-sensitive, it shouldn't affect the verification later
|
||||
_, _ = db.Exec(db.DefaultContext, "UPDATE `user` SET email=? WHERE id=?", "EmAiL-changed@example.com", user.ID)
|
||||
_, _ = db.Exec(t.Context(), "UPDATE `user` SET email=? WHERE id=?", "EmAiL-changed@example.com", user.ID)
|
||||
user = unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: "Test-User-1"})
|
||||
assert.Equal(t, "EmAiL-changed@example.com", user.Email)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user