diff options
author | TheFox0x7 <thefox0x7@gmail.com> | 2025-02-20 10:57:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 09:57:40 +0000 |
commit | cc1fdc84ca0e51e25b6190010144af10e28ca082 (patch) | |
tree | 6bf02091d5f72aebb562193bc1985035d1556228 /services/webhook/telegram_test.go | |
parent | 3bbc4828792cf741e6684d13429aeabb271ca1ad (diff) | |
download | gitea-cc1fdc84ca0e51e25b6190010144af10e28ca082.tar.gz gitea-cc1fdc84ca0e51e25b6190010144af10e28ca082.zip |
Use test context in tests and new loop system in benchmarks (#33648)
Replace all contexts in tests with go1.24 t.Context()
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
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) |