[object Object]

← back to Exo

check for response in quotes

99bf691efd0c0c3f627262780c7737ccfbdef83b · 2024-11-25 14:05:07 +0400 · Alex Cheema

Files touched

Diff

commit 99bf691efd0c0c3f627262780c7737ccfbdef83b
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Mon Nov 25 14:05:07 2024 +0400

    check for response in quotes
---
 .circleci/config.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0dd3a8a2..ce80fee4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -84,7 +84,7 @@ commands:
             kill $PID1 $PID2
 
             echo ""
-            if ! echo "$response_1" | grep -q "^<<parameters.expected_output>>$" || ! echo "$response_2" | grep -q "^<<parameters.expected_output>>$"; then
+            if ! echo "$response_1" | grep -q "\"content\": \"<<parameters.expected_output>>\"" || ! echo "$response_2" | grep -q "\"content\": \"<<parameters.expected_output>>\""; then
               echo "Test failed: Response does not match '<<parameters.expected_output>>'"
               echo "Response 1: $response_1"
               echo ""

← a5addd68 fix dummy model id  ·  back to Exo  ·  remove redundant test_macos_m1 job e2f71b62 →