aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/dingtalk_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/dingtalk_test.go')
-rw-r--r--services/webhook/dingtalk_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go
index 25f47347d0..763d23048a 100644
--- a/services/webhook/dingtalk_test.go
+++ b/services/webhook/dingtalk_test.go
@@ -4,7 +4,6 @@
package webhook
import (
- "context"
"net/url"
"testing"
@@ -236,7 +235,7 @@ func TestDingTalkJSONPayload(t *testing.T) {
PayloadVersion: 2,
}
- req, reqBody, err := newDingtalkRequest(context.Background(), hook, task)
+ req, reqBody, err := newDingtalkRequest(t.Context(), hook, task)
require.NotNil(t, req)
require.NotNil(t, reqBody)
require.NoError(t, err)