diff --git a/tools/search/provider_test.go b/tools/search/provider_test.go index dfdd40e5..b2021176 100644 --- a/tools/search/provider_test.go +++ b/tools/search/provider_test.go @@ -289,7 +289,7 @@ func TestProviderExecNonEmptyQuery(t *testing.T) { `{"page":1,"perPage":` + fmt.Sprint(MaxPerPage) + `,"totalItems":1,"totalPages":1,"items":[{"test1":2,"test2":"test2.2","test3":""}]}`, []string{ "SELECT COUNT(*) FROM `test` WHERE ((NOT (`test1` IS NULL)) AND (COALESCE(test2, '') != COALESCE(null, ''))) AND (test1 >= 2) ORDER BY `test1` ASC, `test2` DESC", - "SELECT * FROM `test` WHERE ((NOT (`test1` IS NULL)) AND (COALESCE(test2, '') != COALESCE(null, ''))) AND (test1 >= 2) ORDER BY `test1` ASC, `test2` DESC LIMIT 200", + "SELECT * FROM `test` WHERE ((NOT (`test1` IS NULL)) AND (COALESCE(test2, '') != COALESCE(null, ''))) AND (test1 >= 2) ORDER BY `test1` ASC, `test2` DESC LIMIT 400", }, }, // valid sort and filter fields (zero results) @@ -437,9 +437,9 @@ func TestProviderParseAndExec(t *testing.T) { }, // valid query params { - "page=3&perPage=555&filter=test1>1&sort=-test2,test3", + "page=3&perPage=9999&filter=test1>1&sort=-test2,test3", false, - `{"page":1,"perPage":200,"totalItems":1,"totalPages":1,"items":[{"test1":2,"test2":"test2.2","test3":""}]}`, + `{"page":1,"perPage":400,"totalItems":1,"totalPages":1,"items":[{"test1":2,"test2":"test2.2","test3":""}]}`, }, }