Improve hook duration timing

This commit is contained in:
Adam Johnson 2023-10-13 16:01:59 +01:00
parent ac42dc586a
commit d988767b41
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ def _run_try_repo(tempdir_factory, **kwargs):
def test_try_repo_repo_only(cap_out, tempdir_factory):
with mock.patch.object(time, 'time', return_value=0.0):
with mock.patch.object(time, 'monotonic', return_value=0.0):
_run_try_repo(tempdir_factory, verbose=True)
start, config, rest = _get_out(cap_out)
assert start == ''