conftest: Use proper way to mock sleep from tenacity retry
This fixes tests hang when building package for debian buster.
This commit is contained in:
parent
8d7dccc54a
commit
87d2344c60
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue