File tree Expand file tree Collapse file tree
tests/integration/linodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -312,19 +312,25 @@ def wait_for_disk_status(
312312 must_end = time .time () + timeout
313313 while time .time () < must_end :
314314 time .sleep (period )
315- result = exec_test_command (
316- [
317- "linode-cli" ,
318- "linodes" ,
319- "disk-view" ,
320- linode_id ,
321- disk_id ,
322- "--format" ,
323- "status" ,
324- "--text" ,
325- "--no-headers" ,
326- ]
327- )
315+ try :
316+ result = exec_test_command (
317+ [
318+ "linode-cli" ,
319+ "linodes" ,
320+ "disk-view" ,
321+ linode_id ,
322+ disk_id ,
323+ "--format" ,
324+ "status" ,
325+ "--text" ,
326+ "--no-headers" ,
327+ ]
328+ )
329+ except RuntimeError as response_error :
330+ if "Not found" in str (response_error ):
331+ continue
332+ else :
333+ raise RuntimeError (response_error )
328334 if status == result :
329335 return True
330336 return False
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def test_create_linode_with_kernel_and_boot_size_then_add_disk_and_rebuild(
121121 assert wait_for_disk_status (
122122 linode_id = result_create [0 ],
123123 disk_id = response_create_disk [0 ],
124- timeout = 180 ,
124+ timeout = 90 ,
125125 status = "ready" ,
126126 ), "linode failed to change disk status to ready after disk creation.."
127127
You can’t perform that action at this time.
0 commit comments