diff --git a/test/blackbox/sync_streaming.bats b/test/blackbox/sync_streaming.bats index 3a302145..1082455c 100644 --- a/test/blackbox/sync_streaming.bats +++ b/test/blackbox/sync_streaming.bats @@ -57,7 +57,6 @@ function setup_file() { local test_root="${BATS_FILE_TMPDIR}/zot-test" mkdir -p "${upstream_root}" "${test_root}" - # Persist storage root path for use in individual tests echo "${test_root}" > "${BATS_FILE_TMPDIR}/test_root" local upstream_port @@ -68,7 +67,7 @@ function setup_file() { test_port=$(get_free_port_for_service "zot_test") echo "${test_port}" > "${BATS_FILE_TMPDIR}/zot.test.port" - # Upstream config (bare minimum, latest release minimal binary) + # Upstream config local upstream_config="${BATS_FILE_TMPDIR}/zot_upstream_config.json" cat > "${upstream_config}" < "${test_config}" </dev/null; then echo "you need to install ${cmd} as a prerequisite to running the tests" >&3 ok=1 @@ -41,7 +41,6 @@ function setup_file() { test_port=$(get_free_port_for_service "zot_test") echo "${test_port}" > "${BATS_FILE_TMPDIR}/zot.test.port" - # Create docker network docker network create kind 2>/dev/null || true local host_ip host_ip=$(docker network inspect kind \ @@ -102,8 +101,7 @@ EOF "${KIND}" delete cluster --name "${CLUSTER_NAME}" fi - # Configure containerd so that ${host_ip}:${test_port} is treated as a - # plain-HTTP registry. + # Configure containerd so that zot is treated as a plain-HTTP registry. local kind_config="${BATS_FILE_TMPDIR}/kind_config.yaml" cat > "${kind_config}" <