From 63f9763bcb528e00932472d8c8df6c494d0f31f3 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 7 Feb 2026 18:02:56 -0500 Subject: [PATCH] test: remove CollectionHandler from test helpers Remove the CollectionHandler field from router.Config struct literal in cmd/server/tests/test_helpers.go. This field was removed from the Config struct in a previous commit. The collection routes are registered directly in handlers.SetupRoutes() and don't need to be passed through the router config. --- cmd/server/tests/test_helpers.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/server/tests/test_helpers.go b/cmd/server/tests/test_helpers.go index 674b8d5..b9154af 100644 --- a/cmd/server/tests/test_helpers.go +++ b/cmd/server/tests/test_helpers.go @@ -126,7 +126,6 @@ func setupTestServer(t *testing.T) (*httptest.Server, *database.Queries, *config ConflictHandler: conflictHandler, AnalyticsHandler: analyticsHandler, QueueHandler: queueHandler, - CollectionHandler: nil, // Not needed for tests OPDSHandler: opdsHandler, ConnManager: connManager, QueueProcessor: queueProcessor,