Fix objects test compile after Routes evictor change (#130)
ci/woodpecker/tag/docker Pipeline was successful

ObjectsHandler.Routes now takes an Evictor, but TestObjectsListPrefix still calls it with no arguments, so the api/v2 test package fails to compile on master.

- pass the existing fakeEvictor to Routes in objects_test.go

Reviewed-on: #130
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #130.
This commit is contained in:
2026-10-04 22:11:19 +11:00
committed by BenVincent
parent a71d126239
commit bda762b10e
+1 -1
View File
@@ -43,7 +43,7 @@ func TestObjectsListPrefix(t *testing.T) {
}
router := chi.NewRouter()
router.Mount("/remotes/{name}/objects", NewObjectsHandler(db).Routes())
router.Mount("/remotes/{name}/objects", NewObjectsHandler(db).Routes(&fakeEvictor{}))
list := func(query string) []models.Artifact {
t.Helper()