From: James Bunton Date: Mon, 28 Sep 2015 12:59:11 +0000 (+1000) Subject: Fixed assert_connection_blocked test to be reliable X-Git-Url: https://code.delx.au/proxy/commitdiff_plain/f85bb02122c5628a60841788c3de3350c4043830 Fixed assert_connection_blocked test to be reliable --- diff --git a/test_proxy.py b/test_proxy.py index 68743d2..a27c14a 100755 --- a/test_proxy.py +++ b/test_proxy.py @@ -290,8 +290,7 @@ class TestPermissions(SocketHelper, unittest.TestCase): try: self.init_socket() self.send(b"\x05\x01\x00") - self.assertAuthSuccess() - self.fail("Expected ConnectionResetError") + self.assertEnd() except ConnectionResetError: pass finally: