Skip to content

Commit

Permalink
remove redaudant discovery check in automated test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Jul 20, 2024
1 parent 9785e25 commit aec58b3
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ jobs:
}')
echo "Response 2: $response_2"
# Stop both instances
kill $PID1 $PID2
echo ""
if ! echo "$response_1" | grep -q "Michael Jackson" || ! echo "$response_2" | grep -q "Michael Jackson"; then
echo "Test failed: Response does not contain 'Michael Jackson'"
Expand All @@ -158,20 +161,3 @@ jobs:
else
echo "Test passed: Response from both nodes contains 'Michael Jackson'"
fi
# Stop both instances
kill $PID1 $PID2
# Check outputs
if grep -q "Connected to peer" output1.log && grep -q "Connected to peer" output2.log; then
echo "Test passed: Both instances discovered each other"
exit 0
else
echo "Test failed: Devices did not discover each other"
echo "Output of first instance:"
cat output1.log
echo ""
echo "Output of second instance:"
cat output2.log
exit 1
fi

0 comments on commit aec58b3

Please sign in to comment.