test_vpc_redundant.py: reduce sleep time from 1 hour to 21 mins (#5503)

This commit is contained in:
Wei Zhou 2021-09-24 16:31:47 +02:00 committed by GitHub
parent 3208929a97
commit 6aa75cf671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -604,13 +604,13 @@ class TestVPCRedundancy(cloudstackTestCase):
self.logger.debug("network.gc.wait is ==> %s" % gc_wait)
self.logger.debug("network.gc.interval is ==> %s" % gc_interval)
total_sleep = 120
total_sleep = 360
if gc_wait and gc_interval:
total_sleep = int(gc_wait[0].value) + int(gc_interval[0].value)
total_sleep = max(int(gc_wait[0].value), int(gc_interval[0].value)) * 2 + 60
else:
self.logger.debug("Could not retrieve the keys 'network.gc.interval' and 'network.gc.wait'. Sleeping for 2 minutes.")
self.logger.debug("Could not retrieve the keys 'network.gc.interval' and 'network.gc.wait'. Sleeping for 6 minutes.")
time.sleep(total_sleep * 3)
time.sleep(total_sleep)
# Router will be in FAULT state, i.e. keepalived is stopped
self.check_routers_state(status_to_check="FAULT", expected_count=2)