Skip to content

Commit 362f89b

Browse files
committed
CLOUDSTACK-6445: Minor fixes in vm ha test
1 parent fa4e7fc commit 362f89b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/integration/smoke/test_vm_ha.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self):
6565
"offerha": True,
6666
},
6767
},
68-
"ostype": 'CentOS 5.3 (32-bit)',
68+
"ostype": 'CentOS 5.3 (64-bit)',
6969
}
7070

7171

@@ -198,7 +198,7 @@ def test_vm_ha(self):
198198
list_vms = VirtualMachine.list(self.apiclient, id=self.virtual_machine.id)
199199
self.assertTrue(isinstance(list_vms, list) and len(list_vms) == 1, msg = "List VM response was empty")
200200
vm = list_vms[0]
201-
if vm.hostid != self.virtual_machine.hostid:
201+
if vm.hostid != self.virtual_machine.hostid and vm.state == "Running":
202202
break
203203
else:
204204
time.sleep(10)

0 commit comments

Comments
 (0)