HomeSoftware Heritage

test_retry: Centralize time.sleep setup within a fixture

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

test_retry: Centralize time.sleep setup within a fixture

This monkeypatches the internal sleep function used to not wait. This kept the
previous behavior. It changes the implementation to monkeypatch though. This
also centralizes within a fixture.

This avoids repeating setup. The previous implementation cluttered the tests
body instruction with internal implementation details.

Details

Provenance
ardumontAuthored on Apr 24 2020, 12:22 PM
ardumontPushed on Apr 27 2020, 3:20 PM
Differential Revision
D3060: test_retry: Avoid duplication in test setup
Build Status
Buildable 12069
Build 18309: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.