Skip to content

Commit

Permalink
style: use success code to check test return
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuchange committed Dec 17, 2020
1 parent eb08ccc commit 07dec0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/test/shell/cli_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sleep 5
res=$(curl http://127.0.0.1:9000)
pkill -f manager-api

if [[ $res == "404 page not found" ]]; then
if [[ $res != "hi~" ]]; then
echo "failed: manager-api cant run on a different path"
exit 1
fi
Expand Down

0 comments on commit 07dec0d

Please sign in to comment.