ch some
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-09-04 19:33:26 +05:00
parent 28509eb4ca
commit d1a6fcaadc
102 changed files with 2089 additions and 1957 deletions

View File

@@ -7,6 +7,7 @@ import (
"sync"
"testing"
"online-back/internal/shared"
"online-back/pkg/logging"
"github.com/gin-gonic/gin"
@@ -61,7 +62,7 @@ func TestParseListFilterIgnoresUndefinedAndCapsLimit(t *testing.T) {
if filter.Module != "card-orders" {
t.Fatalf("module=%q", filter.Module)
}
if filter.Limit != maxLimit {
if filter.Limit != shared.MaxLimit {
t.Fatalf("limit=%d", filter.Limit)
}
if filter.Page != 2 {
@@ -90,7 +91,7 @@ func TestGetByIDListsModuleWhenPathIsNotNumeric(t *testing.T) {
if repo.listFilter.Module != "card-orders" {
t.Fatalf("module=%q", repo.listFilter.Module)
}
if repo.listFilter.Limit != maxLimit {
if repo.listFilter.Limit != shared.MaxLimit {
t.Fatalf("limit=%d", repo.listFilter.Limit)
}
}