mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 06:38:37 -04:00 
			
		
		
		
	Fix possible data race on tests (#30093)
This commit is contained in:
		| @@ -107,7 +107,6 @@ func TestWebhookDeliverAuthorizationHeader(t *testing.T) { | |||||||
| 	err := hook.SetHeaderAuthorization("Bearer s3cr3t-t0ken") | 	err := hook.SetHeaderAuthorization("Bearer s3cr3t-t0ken") | ||||||
| 	assert.NoError(t, err) | 	assert.NoError(t, err) | ||||||
| 	assert.NoError(t, webhook_model.CreateWebhook(db.DefaultContext, hook)) | 	assert.NoError(t, webhook_model.CreateWebhook(db.DefaultContext, hook)) | ||||||
| 	db.GetEngine(db.DefaultContext).NoAutoTime().DB().Logger.ShowSQL(true) |  | ||||||
|  |  | ||||||
| 	hookTask := &webhook_model.HookTask{ | 	hookTask := &webhook_model.HookTask{ | ||||||
| 		HookID:         hook.ID, | 		HookID:         hook.ID, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user