Skip to content

Commit 9e63d71

Browse files
committed
Fix test_create_linode_with_kernel_and_boot_size_then_add_disk_and_rebuild
1 parent e4ca7aa commit 9e63d71

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

tests/integration/linodes/helpers.py

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff 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

tests/integration/linodes/test_linodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)