Skip to content

Commit 5397e67

Browse files
committed
fix: test for xeon
Signed-off-by: dittops <[email protected]>
1 parent ec07e72 commit 5397e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PolyLingua/tests/test_compose_on_xeon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ function validate_services() {
131131

132132
if [[ "$CONTENT_TYPE" == "multipart/form-data" ]]; then
133133
# Handle file upload
134-
local HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST $INPUT_DATA "$URL")
134+
local HTTP_STATUS=$(eval curl -s -o /dev/null -w "%{http_code}" -X POST $INPUT_DATA "$URL")
135135

136136
if [ "$HTTP_STATUS" -eq 200 ]; then
137137
echo "[ $SERVICE_NAME ] HTTP status is 200. Checking content..."
138-
local CONTENT=$(curl -s -X POST $INPUT_DATA "$URL" | tee ${LOG_PATH}/${SERVICE_NAME}.log)
138+
local CONTENT=$(eval curl -s -X POST $INPUT_DATA "$URL" | tee ${LOG_PATH}/${SERVICE_NAME}.log)
139139

140140
if echo "$CONTENT" | grep -q "$EXPECTED_RESULT"; then
141141
echo "[ $SERVICE_NAME ] ✓ Content is as expected."

0 commit comments

Comments
 (0)