From 6bd84ef274dfd7b70d23db0334845b5f46630646 Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 30 Apr 2020 17:36:19 +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 131cd9e3..93763db0 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -405,7 +405,7 @@ function python_test_lac() { # http batch check_cmd "curl -H \"Content-Type:application/json\" -X POST -d '{\"feed\":[{\"words\": \"我爱北京天安门\"}, {\"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": "我爱北京天安门"}, {"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": "我爱北京天安门"}, {"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