mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
test: fix some coverage issues, refactored some of the pagination logic to accomplish this (#3674)
Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
@@ -324,6 +324,11 @@ func validateStorageConfig(cfg *config.Config, logger zlog.Logger) error {
|
||||
})
|
||||
}
|
||||
|
||||
// Sort stores by route to ensure deterministic ordering
|
||||
slices.SortFunc(allStores, func(a, b storeInfo) int {
|
||||
return strings.Compare(a.route, b.route)
|
||||
})
|
||||
|
||||
// Validate each store
|
||||
for _, store := range allStores {
|
||||
route := store.route
|
||||
|
||||
Reference in New Issue
Block a user