Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SketchingDev committed Jul 20, 2023
1 parent 32ffc89 commit 1cbfab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/cli/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#sh
set -e

RED='\033[0;31m'
NO_COLOUR='\033[0m'
Expand All @@ -15,6 +14,7 @@ trap cleanup EXIT
web-messaging-tester example-pass.yml -id $DEPLOYMENT_ID -r $REGION -p 10
if [ $? -ne 0 ]
then
echo ""
echo "${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}"
exit 1
fi
Expand All @@ -23,6 +23,7 @@ fi
web-messaging-tester example-fail.yml -id $DEPLOYMENT_ID -r $REGION -p 10
if [ $? -ne 1 ]
then
echo ""
echo "${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}"
exit 1
fi
Expand Down

0 comments on commit 1cbfab2

Please sign in to comment.