diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 93763db0dbc1727c3ef90640a18b60d537b63800..a522efe19cb9f4170341f291d8c30db0e6749ad1 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -397,7 +397,7 @@ function python_test_lac() { sleep 5 check_cmd "curl -H \"Content-Type:application/json\" -X POST -d '{\"feed\":[{\"words\": \"我爱北京天安门\"}], \"fetch\":[\"word_seg\"]}' http://127.0.0.1:9292/lac/prediction" # check http code - http_code=`curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"words": "我爱北京天安门"}], "fetch":["word_seg"]}' -s -w "%{http_code}" -o /dev/null http://127.0.0.1:9393/lac/prediction` + http_code=`curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"words": "我爱北京天安门"}], "fetch":["word_seg"]}' -s -w "%{http_code}" -o /dev/null http://127.0.0.1:9292/lac/prediction` if [ ${http_code} -ne 200 ]; then echo "HTTP status code -ne 200" exit 1