Skip to content
Snippets Groups Projects
Commit 87d2344c authored by Antoine Lambert's avatar Antoine Lambert
Browse files

conftest: Use proper way to mock sleep from tenacity retry

This fixes tests hang when building package for debian buster.
parent 8d7dccc5
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,6 @@ os.environ["LC_ALL"] = "C.UTF-8"
@pytest.fixture(autouse=True)
def tenacity_wait(mocker):
# Stops tenacity from blocking lister tests for 50x errors
mocker.patch("tenacity.nap.time")
from swh.lister.pattern import Lister
mocker.patch.object(Lister.http_request.retry, "sleep")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment