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