From 548bfaee854b234f0bf162e112cfbf5b7865966a Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 1 Oct 2026 17:07:41 +0200 Subject: [PATCH] test(e2e): use the same wireUploads as serve Co-Authored-By: Claude Sonnet 5.5 --- cmd/tapir/e2e_upload_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tapir/e2e_upload_test.go b/cmd/tapir/e2e_upload_test.go index 0cf9ecc..c4bf649 100644 --- a/cmd/tapir/e2e_upload_test.go +++ b/cmd/tapir/e2e_upload_test.go @@ -82,9 +82,9 @@ func TestE2E_UploadTranscribeAndChat(t *testing.T) { go worker.Run(ctx) app := &web.App{ Store: st, Identity: st, Auth: web.StubAuth{U: web.User{Subject: "e2e"}}, - Uploads: intake, UploadLimits: uploadLimits(cfg), - Chat: buildChat(cfg), UploadChatMaxChars: cfg.MaxUploadedTranscriptChars, + Chat: buildChat(cfg), } + wireUploads(app, cfg, intake) // the same wiring cmdServe uses srv := httptest.NewServer(app.Router()) t.Cleanup(srv.Close) noRedirect := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}