From 82c082792ef0ec0a98604c7686f755adce511cc5 Mon Sep 17 00:00:00 2001 From: Koushik Das Date: Fri, 2 May 2014 17:29:23 +0530 Subject: [PATCH] CLOUDSTACK-6445: Minor fixes in vm ha test --- test/integration/smoke/test_vm_ha.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_vm_ha.py b/test/integration/smoke/test_vm_ha.py index 197814d86ef..f549243729b 100644 --- a/test/integration/smoke/test_vm_ha.py +++ b/test/integration/smoke/test_vm_ha.py @@ -65,7 +65,7 @@ class TestData(object): "offerha": True, }, }, - "ostype": 'CentOS 5.3 (32-bit)', + "ostype": 'CentOS 5.3 (64-bit)', } @@ -198,7 +198,7 @@ class TestDeployVMHA(cloudstackTestCase): list_vms = VirtualMachine.list(self.apiclient, id=self.virtual_machine.id) self.assertTrue(isinstance(list_vms, list) and len(list_vms) == 1, msg = "List VM response was empty") vm = list_vms[0] - if vm.hostid != self.virtual_machine.hostid: + if vm.hostid != self.virtual_machine.hostid and vm.state == "Running": break else: time.sleep(10)