Skip to content

Commit b999d20

Browse files
committed
Added sleep timers due to Jenkins failures
1 parent 2aad5b4 commit b999d20

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/functional/tm/sys/test_failover.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ def test_attribute_values(self, bigip):
5959
fl.exec_cmd('run', online=False, offline=False)
6060

6161
def test_exec_cmd(self, bigip):
62+
fl = bigip.sys.failover.load()
6263
f = bigip.sys.failover
6364
f.exec_cmd('run', offline=True)
64-
fl = bigip.sys.failover.load()
65+
time.sleep(4)
66+
fl.refresh()
6567
assert 'Failover forced_offline' in fl.apiRawValues['apiAnonymous']
6668
f.exec_cmd('run', offline=False, online=True)
6769
# We need this 2 sec delay as sometimes the status does not change
@@ -71,9 +73,11 @@ def test_exec_cmd(self, bigip):
7173
assert 'Failover active' in fl.apiRawValues['apiAnonymous']
7274

7375
def test_exec_cmd_cmdargs(self, bigip):
76+
fl = bigip.sys.failover.load()
7477
f = bigip.sys.failover
7578
f.exec_cmd('run', utilCmdArgs='offline')
76-
fl = bigip.sys.failover.load()
79+
time.sleep(4)
80+
fl.refresh()
7781
assert 'Failover forced_offline' in fl.apiRawValues['apiAnonymous']
7882
f.exec_cmd('run', utilCmdArgs='online')
7983
# We need this 2 sec delay as sometimes the status does not change

0 commit comments

Comments
 (0)