From 81846ee563b65bac512a81cca935080d5671d914 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 10 Jan 2024 19:43:11 +0530 Subject: [PATCH] build(config.yml): test fixes --- .circleci/config.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4ec93fb76..ea412d5bc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,11 +159,14 @@ jobs: fail=false for i in {1..10}; do status=$(cat "/tmp/responses/status_${i}.txt") - response=$(cat "/tmp/responses/response_${i}.json") - + + # Here, we need to set the correct response file path for each iteration + response_file="/tmp/responses/response_${i}.json" # This was missing in the provided script + + response=$(cat "${response_file}") echo "Response ${i} (Status code: ${status}):" - cat "${response_file}" - echo # Newline for readability + echo "${response}" # Use echo here to print the contents + echo # Additional newline for readability if [ "$status" -ne 200 ]; then echo "A request did not return a 200 status code: $status"