[Checkins] [zopefoundation/ZODB] 72df2b: Avoid most calls to time.sleep() in the tests by m...
GitHub
noreply at github.com
Thu Aug 23 15:36:59 CEST 2018
Branch: refs/heads/feature/faster-tests
Home: https://github.com/zopefoundation/ZODB
Commit: 72df2b49ff579ca26a429ebc1aadc8e59881b123
https://github.com/zopefoundation/ZODB/commit/72df2b49ff579ca26a429ebc1aadc8e59881b123
Author: Jason Madden <jamadden at gmail.com>
Date: 2018-08-23 (Thu, 23 Aug 2018)
Changed paths:
M .travis.yml
M CHANGES.rst
M appveyor.yml
M setup.py
M src/ZODB/scripts/tests/test_repozo.py
M src/ZODB/tests/PackableStorage.py
M src/ZODB/tests/RecoveryStorage.py
M src/ZODB/tests/RevisionStorage.py
M src/ZODB/tests/testblob.py
M src/ZODB/tests/util.py
M tox.ini
Log Message:
-----------
Avoid most calls to time.sleep() in the tests by mocking time.[gm]time
This also makes us more deterministic. (Based on code I wrote for nti.testing.)
On my machine, this speeds up a sequential test run from 4:08 to 1:30.
We no longer get much benefit from running the layer tests in
parallel, in fact it looks like the overhead actually slows them down
slightly, so stop doing that.
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the checkins
mailing list