summaryrefslogtreecommitdiffhomepage
path: root/test/unit
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-03-23 19:12:22 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2020-03-23 19:12:22 +0000
commitac9ca6d75cf8987b6650923aa126c0d3ab06f41e (patch)
tree5b1dd0b374ad4ed81db7c06932d7bc0841bd119e /test/unit
parentb0161df42e9a20c69c912f67176c226ae9172b21 (diff)
downloadunit-ac9ca6d75cf8987b6650923aa126c0d3ab06f41e.tar.gz
unit-ac9ca6d75cf8987b6650923aa126c0d3ab06f41e.tar.bz2
Tests: added notification on unsuccessful connect().
Diffstat (limited to '')
-rw-r--r--test/unit/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index 47fb48f1..281b27d6 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -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']