Commit f46359eb authored by Julien Muchembled's avatar Julien Muchembled

windows: add missing sleep in tests checking history

This also reverts commit 4905bb85:
sleeping 1ms is enough.
parents ee942336 4905bb85
...@@ -43,6 +43,10 @@ class HistoryStorage: ...@@ -43,6 +43,10 @@ class HistoryStorage:
h = self._storage.history(oid, size=i) h = self._storage.history(oid, size=i)
self.assertEqual([d['tid'] for d in h], revids[:i]) self.assertEqual([d['tid'] for d in h], revids[:i])
# Check results are sorted by timestamp, in descending order. # Check results are sorted by timestamp, in descending order.
if sys.platform == 'win32':
# Same as above. This is also required in case this method is
# called several times for the same storage.
sleep(0.001)
a = time() a = time()
for d in h: for d in h:
b = a b = a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment