[Checkins] [zopefoundation/ZODB] bc0594: Avoid most calls to time.sleep() in the tests by m...

GitHub noreply at github.com
Thu Aug 23 14:55:14 CEST 2018


  Branch: refs/heads/feature/faster-tests
  Home:   https://github.com/zopefoundation/ZODB
  Commit: bc0594e8948540cf83cd714a80fbc8b926bf9515
      https://github.com/zopefoundation/ZODB/commit/bc0594e8948540cf83cd714a80fbc8b926bf9515
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2018-08-23 (Thu, 23 Aug 2018)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    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