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.
This commit is contained in:
@@ -126,7 +126,6 @@ func setupTestServer(t *testing.T) (*httptest.Server, *database.Queries, *config
|
|||||||
ConflictHandler: conflictHandler,
|
ConflictHandler: conflictHandler,
|
||||||
AnalyticsHandler: analyticsHandler,
|
AnalyticsHandler: analyticsHandler,
|
||||||
QueueHandler: queueHandler,
|
QueueHandler: queueHandler,
|
||||||
CollectionHandler: nil, // Not needed for tests
|
|
||||||
OPDSHandler: opdsHandler,
|
OPDSHandler: opdsHandler,
|
||||||
ConnManager: connManager,
|
ConnManager: connManager,
|
||||||
QueueProcessor: queueProcessor,
|
QueueProcessor: queueProcessor,
|
||||||
|
|||||||
Reference in New Issue
Block a user