Browse Source

change the message we search for in ci

Alex Cheema 7 months ago
parent
commit
115f0eacb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .circleci/config.yml

+ 1 - 1
.circleci/config.yml

@@ -144,7 +144,7 @@ jobs:
             PID2=$!
             PID2=$!
             sleep 10
             sleep 10
             kill $PID1 $PID2
             kill $PID1 $PID2
-            if grep -q "Successfully connected peers: \['node2@.*:.*'\]" output1.log && ! grep -q "Failed to connect peers:" output1.log && grep -q "Successfully connected peers: \['node1@.*:.*'\]" output2.log && ! grep -q "Failed to connect peers:" output2.log; then
+            if grep -q "Peer statuses: {\\'node2\\': \\'is_connected=True, health_check=True" output1.log && ! grep -q "Failed to connect peers:" output1.log && grep -q "Peer statuses: {\\'node1\\': \\'is_connected=True, health_check=True" output2.log && ! grep -q "Failed to connect peers:" output2.log; then
               echo "Test passed: Both instances discovered each other"
               echo "Test passed: Both instances discovered each other"
               exit 0
               exit 0
             else
             else