From e7a623a0d112a717e8651047658f114494e66208 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 27 Jun 2026 14:18:28 +0200 Subject: [PATCH] fix: use Get From List instead of direct list indexing Direct ${ids}[0] syntax unreliable. Use Get From List ${ids} 0 instead. --- tests/robot/api/download.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/robot/api/download.robot b/tests/robot/api/download.robot index 72221b0..fe0afcf 100644 --- a/tests/robot/api/download.robot +++ b/tests/robot/api/download.robot @@ -99,7 +99,7 @@ Remove Item From Queue ${add_resp}= Add To Queue ${payload} ${json}= Convert String To Json ${add_resp.text} ${ids}= Get Value From Json ${json} $.item_ids - ${item_id}= Set Variable ${ids}[0] + ${item_id}= Get From List ${ids} 0 ${del_resp}= DELETE API /api/queue/item/${item_id} Response Should Have Status ${del_resp} 200 @@ -115,7 +115,7 @@ Retry Failed Item ${add_resp}= Add To Queue ${payload} ${json}= Convert String To Json ${add_resp.text} ${ids}= Get Value From Json ${json} $.item_ids - ${item_id}= Set Variable ${ids}[0] + ${item_id}= Get From List ${ids} 0 # Retry endpoint accepts item_ids list, returns 200 even if no items actually failed # (retried_count will be 0 if item wasn't in failed state) ${retry_payload}= Create Dictionary item_ids=${item_id}