From: Tomas Krizek Date: Wed, 16 Jan 2019 13:58:22 +0000 (+0100) Subject: pytests/test_rehandshake: fix test X-Git-Tag: v4.0.0~47^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9413ce705a2f83fa90144c6ce4e923f75e719bdd;p=thirdparty%2Fknot-resolver.git pytests/test_rehandshake: fix test --- diff --git a/tests/pytests/test_rehandshake.py b/tests/pytests/test_rehandshake.py index d30916398..27c207000 100644 --- a/tests/pytests/test_rehandshake.py +++ b/tests/pytests/test_rehandshake.py @@ -34,5 +34,5 @@ def test_proxy_rehandshake(tmpdir): n_connecting_to += 1 elif re.search(r"TLS rehandshake .* has started", line) is not None: n_rehandshake += 1 - assert n_connecting_to == 0 # shouldn't be present in partial log + assert n_connecting_to == 1 # should connect exactly once assert n_rehandshake > 0