Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit ae4ccd9

Browse files
committed
Hack for instance comparison
1 parent a77e0b4 commit ae4ccd9

File tree

1 file changed

+6
-1
lines changed
  • packages/jumpstarter-driver-corellium/jumpstarter_driver_corellium

1 file changed

+6
-1
lines changed

packages/jumpstarter-driver-corellium/jumpstarter_driver_corellium/driver.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ async def wait_instance(self, current: Instance, desired: Optional[Instance]):
122122
if counter >= opts["retries"]:
123123
raise ValueError(f"Instance took too long to be reach the desired state: {current}")
124124

125-
if await self.parent.api.get_instance(current.id) == desired:
125+
current = await self.parent.api.get_instance(current.id)
126+
127+
if current == desired:
128+
break
129+
130+
if current is not None and desired is not None and current.state == desired.state:
126131
break
127132

128133
counter += 1

0 commit comments

Comments
 (0)