Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 5e33426

Browse files
committed
Fix intermittent test_get_search_result_with_both_q_and_query failure
1 parent ebb528a commit 5e33426

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/unit/database_tests.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,11 +1333,7 @@ def test_get_search_result_with_both_q_and_query(self):
13331333
self.db.get_search_result('searchddoc001', 'searchindex001',
13341334
query='julia*', q='julia*')
13351335
err = cm.exception
1336-
self.assertEqual(
1337-
str(err),
1338-
'A single query/q parameter is required. '
1339-
'Found: {\'q\': \'julia*\', \'query\': \'julia*\'}'
1340-
)
1336+
self.assertTrue(str(err).startswith('A single query/q parameter is required.'))
13411337

13421338
def test_get_search_result_with_invalid_value_types(self):
13431339
"""

0 commit comments

Comments
 (0)