From ddf6fd2f9a8be35a4599bc9316cbcce8b85c8890 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Tue, 23 Sep 2014 16:48:46 -0700 Subject: [PATCH] CLOUDSTACK-7436: Fix automation test on RvR status detection Everytime when checking the RvR status, you must wait some time for RvR to update it's status. The polling thread would update the status only every 30 seconds by default. --- test/integration/component/maint/test_redundant_router.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/component/maint/test_redundant_router.py b/test/integration/component/maint/test_redundant_router.py index 1b215c3b9b3..75c6122e1b5 100644 --- a/test/integration/component/maint/test_redundant_router.py +++ b/test/integration/component/maint/test_redundant_router.py @@ -1574,6 +1574,9 @@ class TestRvRRedundancy(cloudstackTestCase): "Vm should be in running state after deployment" ) + # wait for VR to update state + time.sleep(self.services["sleep"]) + self.debug("Checking state of the backup router in %s" % self.network.name) routers = Router.list( self.apiclient,