diff --git a/tests/test_ca.py b/tests/test_ca.py index c237daf..d3c8187 100644 --- a/tests/test_ca.py +++ b/tests/test_ca.py @@ -8,8 +8,11 @@ def client(sock, data) -> None: print('Sending: {}'.format(data)) sock.send(data.encode()) - rep = sock.recv(128) - print('Received: {}'.format(rep)) + try: + rep = sock.recv(128) + print('Received: {}'.format(rep)) + except ConnectionResetError: + pass @ssl_ify("server") def echo_server(sock) -> None: