aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/discord_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/discord_test.go')
-rw-r--r--services/webhook/discord_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/webhook/discord_test.go b/services/webhook/discord_test.go
index 36b99d452e..7f503e3374 100644
--- a/services/webhook/discord_test.go
+++ b/services/webhook/discord_test.go
@@ -4,7 +4,6 @@
package webhook
import (
- "context"
"testing"
webhook_model "code.gitea.io/gitea/models/webhook"
@@ -303,7 +302,7 @@ func TestDiscordJSONPayload(t *testing.T) {
PayloadVersion: 2,
}
- req, reqBody, err := newDiscordRequest(context.Background(), hook, task)
+ req, reqBody, err := newDiscordRequest(t.Context(), hook, task)
require.NotNil(t, req)
require.NotNil(t, reqBody)
require.NoError(t, err)