Skip to content

Commit

Permalink
[tests][xs] #1505: Make test cope with message from other solr versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Dec 7, 2011
1 parent 237ad14 commit f05169c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/tests/functional/api/test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,9 @@ def test_2_bad_param(self):
status=409)
assert '"message": "Search error:' in res.body, res.body
assert 'SOLR returned an error' in res.body, res.body
assert 'Missing sort order' in res.body, res.body
# solr error is 'Missing_sort_order' or 'Missing_sort_order',
# depending on the solr version.
assert 'sort' in res.body, res.body

def test_3_bad_param(self):
postparams = '%s=1' % json.dumps({
Expand Down

0 comments on commit f05169c

Please sign in to comment.