From c738ff200158febc75c7b35296bf283747169483 Mon Sep 17 00:00:00 2001 From: Amrit Raj Date: Fri, 11 Mar 2022 16:16:28 +0530 Subject: [PATCH] wait for time has reduced from 120 sec to 60 sec Signed-off-by: Amrit Raj --- py-scripts/test_ip_variable_time.py | 3 ++- py-scripts/test_ipv4_ttls.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/py-scripts/test_ip_variable_time.py b/py-scripts/test_ip_variable_time.py index 1f274f28..6cb6bbbf 100755 --- a/py-scripts/test_ip_variable_time.py +++ b/py-scripts/test_ip_variable_time.py @@ -99,6 +99,7 @@ class IPVariableTime(Realm): self.traffic_type = traffic_type self.number_template = number_template self.debug = _debug_on + self.timeout_sec = 60 # self.json_post("/cli-json/set_resource", { # "shelf":1, # "resource":all, @@ -165,7 +166,7 @@ class IPVariableTime(Realm): self.station_profile.admin_up() temp_stas = self.station_profile.station_names.copy() print("temp_stas {temp_stas}".format(temp_stas=temp_stas)) - if self.wait_for_ip(temp_stas, ipv4=not self.ipv6, ipv6=self.ipv6): + if self.wait_for_ip(temp_stas, ipv4=not self.ipv6, ipv6=self.ipv6, timeout_sec=self.timeout_sec): self._pass("All stations got IPs") else: self._fail("Stations failed to get IPs") diff --git a/py-scripts/test_ipv4_ttls.py b/py-scripts/test_ipv4_ttls.py index 7e862181..39084807 100755 --- a/py-scripts/test_ipv4_ttls.py +++ b/py-scripts/test_ipv4_ttls.py @@ -107,7 +107,7 @@ class TTLSTest(Realm): self.hs20_enable = hs20_enable self.enable_pkc = enable_pkc - self.timeout = 120 + self.timeout = 60 self.number_template = number_template self.debug = _debug_on self.station_profile = self.new_station_profile()