Tests: added notification on unsuccessful connect().

This commit is contained in:
Andrei Zeliankou
2020-03-23 19:12:22 +00:00
parent b0161df42e
commit ac9ca6d75c

View File

@@ -60,7 +60,7 @@ class TestHTTP(TestUnit):
sock.connect(connect_args)
except ConnectionRefusedError:
sock.close()
return None
self.fail('Client can\'t connect to the server.')
else:
sock = kwargs['sock']