diff --git a/bin/tests/system/statschannel/tests-json.py b/bin/tests/system/statschannel/tests-json.py index aa6e500d05..fd0284233e 100755 --- a/bin/tests/system/statschannel/tests-json.py +++ b/bin/tests/system/statschannel/tests-json.py @@ -22,7 +22,8 @@ from helper import fmt # JSON helper functions def fetch_zones_json(statsip, statsport): - r = requests.get("http://{}:{}/json/v1/zones".format(statsip, statsport)) + r = requests.get("http://{}:{}/json/v1/zones".format(statsip, statsport), + timeout=600) assert r.status_code == 200 data = r.json() @@ -31,7 +32,8 @@ def fetch_zones_json(statsip, statsport): def fetch_traffic_json(statsip, statsport): - r = requests.get("http://{}:{}/json/v1/traffic".format(statsip, statsport)) + r = requests.get("http://{}:{}/json/v1/traffic".format(statsip, statsport), + timeout=600) assert r.status_code == 200 data = r.json() diff --git a/bin/tests/system/statschannel/tests-xml.py b/bin/tests/system/statschannel/tests-xml.py index e19397cb4c..3f1b0d7236 100755 --- a/bin/tests/system/statschannel/tests-xml.py +++ b/bin/tests/system/statschannel/tests-xml.py @@ -23,7 +23,8 @@ from helper import fmt # XML helper functions def fetch_zones_xml(statsip, statsport): - r = requests.get("http://{}:{}/xml/v3/zones".format(statsip, statsport)) + r = requests.get("http://{}:{}/xml/v3/zones".format(statsip, statsport), + timeout=600) assert r.status_code == 200 root = ET.fromstring(r.text) @@ -47,7 +48,8 @@ def fetch_traffic_xml(statsip, statsport): return out - r = requests.get("http://{}:{}/xml/v3/traffic".format(statsip, statsport)) + r = requests.get("http://{}:{}/xml/v3/traffic".format(statsip, statsport), + timeout=600) assert r.status_code == 200 root = ET.fromstring(r.text)