diff --git a/tests/test_subversion.py b/tests/test_subversion.py index 48661b7..edda2e7 100644 --- a/tests/test_subversion.py +++ b/tests/test_subversion.py @@ -2,10 +2,10 @@ """Unit test for SVN interface.""" -import collections import datetime import logging.config import unittest +from time import sleep from bson import ObjectId from dateutil.tz import tzutc @@ -391,6 +391,12 @@ class SvnTaskLoggedTest(AbstractAttractTest): with self.app.test_request_context(): _, token = cli.create_svner_account('svner@example.com', self.project['url']) + # !! UGLY !! + # The '_created' timestamp resolution is to low. Therefor both created and commit activity can get the same + # created timestamp, and then the ordering of activities is non-deterministic. + # So lets slow things down a little. + sleep(0.001) + # Do the push msg = '¡is a tie! commit to task [%s]' % shortcode self.post('/attract/api/%s/subversion/log' % self.project['url'],