From d558ed55df855e3ce01b19e7f1b1fe44dce8e64a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 21 Apr 2026 22:34:55 +0300 Subject: Audit stripped comicgen leftovers --- internal/httpctx/httpctx.go | 6 +----- internal/httpctx/httpctx_test.go | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'internal/httpctx') diff --git a/internal/httpctx/httpctx.go b/internal/httpctx/httpctx.go index ffbdc65..075f948 100644 --- a/internal/httpctx/httpctx.go +++ b/internal/httpctx/httpctx.go @@ -20,7 +20,7 @@ const ( OpenAIHTTPTimeout = 15 * time.Minute // GenAIHTTPTimeout bounds each Google GenAI SDK HTTP request (Gemini text, - // image, TTS, Veo polling, file download). + // image and TTS generation). GenAIHTTPTimeout = 30 * time.Minute // ImageDownloadTimeout limits fetches of remote image URLs (e.g. DALL-E @@ -34,10 +34,6 @@ const ( // ListModelsTimeout bounds model-listing CLI calls. ListModelsTimeout = 3 * time.Minute - // VeoCLIPerVideoTimeout bounds one gallery-to-MP4 Veo run (start + poll + - // download) when the CLI passes Background. - VeoCLIPerVideoTimeout = 25 * time.Minute - // SingleWordProcessTimeout caps ProcessWordWithTranslation when the CLI // uses an unbounded context (batch processing already applies per-word // timeouts elsewhere). diff --git a/internal/httpctx/httpctx_test.go b/internal/httpctx/httpctx_test.go index 6cd6521..d82dc99 100644 --- a/internal/httpctx/httpctx_test.go +++ b/internal/httpctx/httpctx_test.go @@ -43,10 +43,10 @@ func TestWithTimeoutUnlessSet_NoDeadline(t *testing.T) { } } -func TestWithTimeoutUnlessSet_NilUsesBackground(t *testing.T) { +func TestWithTimeoutUnlessSet_TODOContext(t *testing.T) { t.Parallel() - ctx, cancel := WithTimeoutUnlessSet(nil, 50*time.Millisecond) + ctx, cancel := WithTimeoutUnlessSet(context.TODO(), 50*time.Millisecond) defer cancel() if err := ctx.Err(); err != nil { -- cgit v1.2.3