test(e2e): use the same wireUploads as serve

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 17:07:41 +02:00
co-authored by Claude Sonnet 5.5
parent ad2e3e0e8e
commit 548bfaee85
+2 -2
View File
@@ -82,9 +82,9 @@ func TestE2E_UploadTranscribeAndChat(t *testing.T) {
go worker.Run(ctx) go worker.Run(ctx)
app := &web.App{ app := &web.App{
Store: st, Identity: st, Auth: web.StubAuth{U: web.User{Subject: "e2e"}}, Store: st, Identity: st, Auth: web.StubAuth{U: web.User{Subject: "e2e"}},
Uploads: intake, UploadLimits: uploadLimits(cfg), Chat: buildChat(cfg),
Chat: buildChat(cfg), UploadChatMaxChars: cfg.MaxUploadedTranscriptChars,
} }
wireUploads(app, cfg, intake) // the same wiring cmdServe uses
srv := httptest.NewServer(app.Router()) srv := httptest.NewServer(app.Router())
t.Cleanup(srv.Close) t.Cleanup(srv.Close)
noRedirect := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }} noRedirect := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}