HomeSoftware Heritage

test_retry: Centralize time.sleep setup within a fixture

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
Parents
rDSTOecadd5373783: Remove recently added test_cli.test_rpc_serve* tests
Branches
Unknown
Tags
Unknown
References
tag: v0.0.188
Build Status
Buildable 12069
Build 18309: test-and-buildJenkins console · Jenkins