algolia / algoliasearch-client-python

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/python/?language=python
MIT License
196 stars 67 forks source link

Flaky test spotted #507

Closed aseure closed 4 days ago

aseure commented 4 years ago

Found out about this flaky test as of 2.3.1 for py34-sync (but the version is probably not related) when running all tests in parallel with tox -p.

======================================================================
FAIL: test_cross_app_copy_index (tests.features.test_account_client.TestAccountClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/anthony.seure/algolia/algoliasearch-client-python/tests/features/test_account_client.py", line 60, in test_cross_app_copy_index
    self.assertEqual(self.index2.get_synonym("one"), synonym)
AssertionError: {'typ[13 chars], 'synonyms': ['indicate', 'ago', 'leader'], 'objectID': 'one'} != {'typ[13 chars], 'synonyms': ['join', 'number', 'today'], 'objectID': 'one'}
+ {'objectID': 'one', 'synonyms': ['join', 'number', 'today'], 'type': 'synonym'}
- {'objectID': 'one',
-  'synonyms': ['indicate', 'ago', 'leader'],
-  'type': 'synonym'}

----------------------------------------------------------------------
Ran 110 tests in 99.876s

FAILED (failures=1)
ERROR: InvocationError for command /Users/anthony.seure/algolia/algoliasearch-client-python/.tox/py34-sync/bin/python -m unittest discover -v (exited with code 1)