Fixed assert_connection_blocked test to be reliable
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 28 Sep 2015 12:59:11 +0000 (22:59 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 28 Sep 2015 12:59:11 +0000 (22:59 +1000)
test_proxy.py

index 68743d2..a27c14a 100755 (executable)
@@ -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: