Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.mercurial.tests.test_hgutil::test_clone_timeout
Failed

TEST RESULT

Run At
Jul 28 2021, 5:32 PM
Details
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb24472f7f0> def test_clone_timeout(monkeypatch): src = "https://www.mercurial-scm.org/repo/hello" dest = "/dev/null" timeout = 0.1 sleepy_time = 100 * timeout assert sleepy_time > timeout def clone(*args, sleepy_time=sleepy_time, **kwargs): # ignore SIGTERM to force sigkill signal.signal(signal.SIGTERM, lambda signum, frame: None) time.sleep(sleepy_time) # we make sure we exceed the timeout monkeypatch.setattr(hg, "clone", clone) with pytest.raises(hgutil.CloneTimeout) as e: hgutil.clone(src, dest, timeout) killed = True > assert e.value.args == (src, timeout, killed) E AssertionError: assert ('https://www...', 0.1, False) == ('https://www...o', 0.1, True) E At index 2 diff: False != True E Full diff: E - ('https://www.mercurial-scm.org/repo/hello', 0.1, True) E ? ^^^ E + ('https://www.mercurial-scm.org/repo/hello', 0.1, False) E ? ^^^^ .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_hgutil.py:32: AssertionError