summaryrefslogtreecommitdiff
path: root/internal/httpctx
diff options
context:
space:
mode:
Diffstat (limited to 'internal/httpctx')
-rw-r--r--internal/httpctx/httpctx.go6
-rw-r--r--internal/httpctx/httpctx_test.go4
2 files changed, 3 insertions, 7 deletions
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 {