Pass evictor to ObjectsHandler.Routes in objects test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user