From a7d8efae24fb89ad101a9563cd6f6380e87a9bcb Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Tue, 6 Feb 2018 16:03:51 +0900
Subject: [PATCH] testERP5Catalog: Get rid of the 1000 rows limit.

Catalog used in this test is now close/above 1k rows, so go one API level
down to get control over that pesky "limit 1000".
---
 product/ERP5Catalog/tests/testERP5Catalog.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py
index 89b7989365..2cc3a68270 100644
--- a/product/ERP5Catalog/tests/testERP5Catalog.py
+++ b/product/ERP5Catalog/tests/testERP5Catalog.py
@@ -145,8 +145,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
       sql_connection = getattr(self.getPortal(), connection_id)
     if sql is None:
       sql = 'select distinct(path) from catalog'
-    # XXX: manage_test has an implicit "LIMIT 1000" which cannot be disabled.
-    return [x['path'] for x in sql_connection.manage_test(sql)]
+    _, row_list = sql_connection().query(sql, max_rows=0)
+    return [x for x, in row_list]
 
   def getSQLPathListWithRolesAndUsers(self, connection_id):
     sql = 'select distinct(path) from catalog, roles_and_users\
-- 
2.30.9