wait for time has reduced from 120 sec to 60 sec

Signed-off-by: Amrit Raj <amrit.raj@candelatech.com>
This commit is contained in:
Amrit Raj
2022-03-11 16:16:28 +05:30
parent dcce0e90c7
commit c738ff2001
2 changed files with 3 additions and 2 deletions

View File

@@ -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")

View File

@@ -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()