0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 05:39:14 +01:00

Fix possible data race on tests (#30093) (#30108)

backport #30093
This commit is contained in:
Lunny Xiao 2024-03-26 23:49:48 +08:00 committed by GitHub
parent a0f89ba8c7
commit 09a5067c0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,6 @@ func TestWebhookDeliverAuthorizationHeader(t *testing.T) {
err := hook.SetHeaderAuthorization("Bearer s3cr3t-t0ken")
assert.NoError(t, err)
assert.NoError(t, webhook_model.CreateWebhook(db.DefaultContext, hook))
db.GetEngine(db.DefaultContext).NoAutoTime().DB().Logger.ShowSQL(true)
hookTask := &webhook_model.HookTask{HookID: hook.ID, EventType: webhook_module.HookEventPush, Payloader: &api.PushPayload{}}