Skip to content

Commit

Permalink
Deliberately fail
Browse files Browse the repository at this point in the history
  • Loading branch information
SketchingDev committed Jul 20, 2023
1 parent 1cbfab2 commit 11c23ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/cli/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ 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}"
echo "\n\n${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}"
exit 1
fi

## Failing test exists with code 1
web-messaging-tester example-fail.yml -id $DEPLOYMENT_ID -r $REGION -p 10
if [ $? -ne 1 ]
if [ $? -ne 0 ]
then
echo ""
echo "${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}"
echo "\n\n${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 11c23ea

Please sign in to comment.