aboutsummaryrefslogtreecommitdiffstats
path: root/test/server_poll.py
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-11-14 11:55:39 +0000
committerVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-11-14 11:55:39 +0000
commit7416ac8d3cadcc6a53bbcc41e1cd184fa1587afd (patch)
tree1c80c355da7ec537ba06b37706f2296988a87984 /test/server_poll.py
parent0646040667b59526ac8346d53efd14dc0e75b01e (diff)
downloadstable-diffusion-webui-gfx803-7416ac8d3cadcc6a53bbcc41e1cd184fa1587afd.tar.gz
stable-diffusion-webui-gfx803-7416ac8d3cadcc6a53bbcc41e1cd184fa1587afd.tar.bz2
stable-diffusion-webui-gfx803-7416ac8d3cadcc6a53bbcc41e1cd184fa1587afd.zip
Use localhost with 80 port, count errors as well
Diffstat (limited to 'test/server_poll.py')
-rw-r--r--test/server_poll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/server_poll.py b/test/server_poll.py
index 028fd476..e4462b6c 100644
--- a/test/server_poll.py
+++ b/test/server_poll.py
@@ -8,7 +8,7 @@ def run_tests(proc, test_dir):
start_time = time.time()
while time.time()-start_time < timeout_threshold:
try:
- requests.head("http://127.0.0.1:7860/")
+ requests.head("http://localhost:80/")
break
except requests.exceptions.ConnectionError:
if proc.poll() is not None:
@@ -18,7 +18,7 @@ def run_tests(proc, test_dir):
test_dir = ""
suite = unittest.TestLoader().discover(test_dir, pattern="*_test.py", top_level_dir="test")
result = unittest.TextTestRunner(verbosity=2).run(suite)
- return len(result.failures)
+ return len(result.failures) + len(result.errors)
else:
print("Launch unsuccessful")
return 1