]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests/test_rehandshake: fix test
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 16 Jan 2019 13:58:22 +0000 (14:58 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 23 Jan 2019 13:58:47 +0000 (14:58 +0100)
tests/pytests/test_rehandshake.py

index d309163986f2e46cd36f9d37c1c52d630c06f72d..27c2070002c9d56001732a957362e01433c362e2 100644 (file)
@@ -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