1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

x.websocket: websocket server fix and bring back server autobahn (#8291)

This commit is contained in:
Tomas Hellström
2021-01-23 16:56:38 +01:00
committed by GitHub
parent 4065a0327a
commit 39e5f6e9df
4 changed files with 713 additions and 694 deletions

View File

@ -19,17 +19,17 @@ with open("/reports/clients/index.json") as f:
nr_of_client_tests = nr_of_client_tests + 1
# with open("/reports/servers/index.json") as f:
# data = json.load(f)
with open("/reports/servers/index.json") as f:
data = json.load(f)
# for i in data["AutobahnServer"]:
# if (
# data["AutobahnServer"][i]["behavior"] == "FAILED"
# or data["AutobahnServer"][i]["behaviorClose"] == "FAILED"
# ):
# nr_of_server_errs = nr_of_server_errs + 1
for i in data["AutobahnServer"]:
if (
data["AutobahnServer"][i]["behavior"] == "FAILED"
or data["AutobahnServer"][i]["behaviorClose"] == "FAILED"
):
nr_of_server_errs = nr_of_server_errs + 1
# nr_of_server_tests = nr_of_server_tests + 1
nr_of_server_tests = nr_of_server_tests + 1
if nr_of_client_errs > 0 or nr_of_server_errs > 0:
print(