We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21b888 commit b9e423bCopy full SHA for b9e423b
test/integration/smoke/test_vm_schedule.py
@@ -596,6 +596,10 @@ def test_05_vmschedule_test_e2e(self):
596
time.sleep(30)
597
current_state = self.virtual_machine.update(self.apiclient).state
598
if previous_state != current_state:
599
+ # Add these checks because VMs can take some time to start or stop
600
+ if (previous_state == 'Starting' and current_state in ('Starting', 'Running')) or (
601
+ previous_state == 'Stopping' and current_state in ('Stopping', 'Stopped')):
602
+ continue
603
self.debug(
604
"VM changed state from %s to %s" % (previous_state, current_state)
605
)
0 commit comments