HomeSoftware Heritage

test_retry: Use proper way to mock sleep of retryable storage methods

Description

test_retry: Use proper way to mock sleep of retryable storage methods

Previous implementation was not mocking sleep of retryable storage methods
as the RetryingProxyStorage setup the retry features when it is instantiated.

So modify fixture to ensure sleep functions are mocked and return the mocks
in a dict indexed by storage method names.

This fixes debian buster package build for swh-storage.

Details

Provenance
anlambertAuthored on Oct 19 2022, 2:10 PM
anlambertPushed on Oct 19 2022, 2:39 PM
Differential Revision
D8745: test_retry: Use proper way to mock sleep of retryable storage methods
Parents
rDSTOc1c2dbf01bce: pre-commit, tox: Bump pre-commit, codespell, black and flake8
Branches
Unknown
Tags
Unknown
References
tag: v1.7.1
Build Status
Buildable 32469
Build 50851: test-and-buildJenkins console · Jenkins