From 6262cba0d0819eaaf0bbd466587b6845d87bc309 Mon Sep 17 00:00:00 2001 From: Vishwas Rajashekar Date: Fri, 22 May 2026 17:39:19 +0530 Subject: [PATCH] feat(sync): increase wait for stream bats Signed-off-by: Vishwas Rajashekar --- test/blackbox/sync_streaming.bats | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/blackbox/sync_streaming.bats b/test/blackbox/sync_streaming.bats index a3a573fd..2b31a393 100644 --- a/test/blackbox/sync_streaming.bats +++ b/test/blackbox/sync_streaming.bats @@ -42,7 +42,7 @@ function delete_repo_from_zot() { } function setup_file() { - if ! $(verify_prerequisites); then + if ! verify_prerequisites; then exit 1 fi @@ -221,7 +221,8 @@ function teardown_file() { test_root=$(cat "${BATS_FILE_TMPDIR}/test_root") local index_json="${test_root}/ollama/ollama/index.json" - sleep 3 + # Wait for the image to be fully committed to storage. + sleep 30 # Confirm the image is present on the filesystem before deleting. # Can't use curl here — an HTTP request would re-trigger on-demand sync. @@ -281,7 +282,8 @@ function teardown_file() { test_root=$(cat "${BATS_FILE_TMPDIR}/test_root") local index_json="${test_root}/ollama/ollama/index.json" - sleep 10 + # Wait for the image to be fully committed to storage. + sleep 30 # Confirm the image is present on the filesystem before deleting. # Can't use curl here — an HTTP request would re-trigger on-demand sync.