diff options
Diffstat (limited to 'services/webhook/telegram_test.go')
-rw-r--r-- | services/webhook/telegram_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/webhook/telegram_test.go b/services/webhook/telegram_test.go index 7ba81f1564..3fa8e27836 100644 --- a/services/webhook/telegram_test.go +++ b/services/webhook/telegram_test.go @@ -4,7 +4,6 @@ package webhook import ( - "context" "testing" webhook_model "code.gitea.io/gitea/models/webhook" @@ -195,7 +194,7 @@ func TestTelegramJSONPayload(t *testing.T) { PayloadVersion: 2, } - req, reqBody, err := newTelegramRequest(context.Background(), hook, task) + req, reqBody, err := newTelegramRequest(t.Context(), hook, task) require.NotNil(t, req) require.NotNil(t, reqBody) require.NoError(t, err) |