fix(telegram): use NewRequestWithContext to satisfy noctx

Pre-existing lint finding, unrelated to any behavior change.
This commit is contained in:
sam committed 2026-08-15 02:19:57 +10:00
1 parent c2b6823eba
commit 95bb4b5bb6
1 file changed
+1 -1
+1 -1
View File
@@ -243,7 +243,7 @@ func TestStartWithoutToken(t *testing.T) {
func TestWebhookHandlerReturns503WhenNotStarted(t *testing.T) {
g := New("token", "", "", nil, slog.Default())
rec := httptest.NewRecorder()
g.WebhookHandler().ServeHTTP(rec, httptest.NewRequest(http.MethodPost, "/", nil))
g.WebhookHandler().ServeHTTP(rec, httptest.NewRequestWithContext(context.Background(), http.MethodPost, "/", nil))
if rec.Code != http.StatusServiceUnavailable {
t.Errorf("status = %d, want 503", rec.Code)
}