Skip to content

Commit 10a0404

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent acf78ab commit 10a0404

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/integration/smoke/test_deploy_vm_iso.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,14 @@ def test_deploy_vm_from_iso(self):
158158
"Check list response returns a valid list"
159159
)
160160
vm_response = list_vm_response[0]
161+
vm_state = self.virtual_machine.getState(
162+
self.apiclient,
163+
VirtualMachine.RUNNING
164+
)
161165

162166
self.assertEqual(
163-
vm_response.state,
164-
"Running",
167+
vm_state,
168+
VirtualMachine.RUNNING,
165169
"Check virtual machine is in running state"
166170
)
167171

0 commit comments

Comments
 (0)