From ec315225b4d2f746c56d926104ec8ef96a069b8a Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 30 Apr 2020 18:11:06 +0800 Subject: [PATCH] fix ci script --- tools/serving_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 93763db0..a522efe1 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 -- GitLab