diff --git a/ckan/tests/lib/test_resource_search.py b/ckan/tests/lib/test_resource_search.py index 1f648063713..a76bbdc7647 100644 --- a/ckan/tests/lib/test_resource_search.py +++ b/ckan/tests/lib/test_resource_search.py @@ -136,7 +136,7 @@ def test_12_search_all_fields(self): def test_13_pagination(self): # large search - options = search.QueryOptions(order_by='hash') + options = search.QueryOptions(order_by='id') fields = {'url':'site'} all_results = search.query_for(model.Resource).run(fields=fields, options=options) all_resources = all_results['results'] @@ -144,7 +144,7 @@ def test_13_pagination(self): assert all_resource_count >= 6, all_results # limit - options = search.QueryOptions(order_by='hash') + options = search.QueryOptions(order_by='id') options.limit = 2 result = search.query_for(model.Resource).run(fields=fields, options=options) resources = result['results'] @@ -154,7 +154,7 @@ def test_13_pagination(self): assert resources == all_resources[:2], '%r, %r' % (resources, all_resources) # offset - options = search.QueryOptions(order_by='hash') + options = search.QueryOptions(order_by='id') options.limit = 2 options.offset = 2 result = search.query_for(model.Resource).run(fields=fields, options=options) @@ -163,7 +163,7 @@ def test_13_pagination(self): assert resources == all_resources[2:4] # larger offset - options = search.QueryOptions(order_by='hash') + options = search.QueryOptions(order_by='id') options.limit = 2 options.offset = 4 result = search.query_for(model.Resource).run(fields=fields, options=options)