未验证 提交 d97761f3 编写于 作者: H huangjianhui 提交者: GitHub

Update test_uci_pipeline.py

kill web_service when env_check started
上级 07199bd9
...@@ -21,12 +21,13 @@ class TestUCIPipeline(object): ...@@ -21,12 +21,13 @@ class TestUCIPipeline(object):
serving_util.check_model_data_exist() serving_util.check_model_data_exist()
self.get_truth_val_by_inference(self) self.get_truth_val_by_inference(self)
self.serving_util = serving_util self.serving_util = serving_util
self.serving_util.release('web_service')
def teardown_method(self): def teardown_method(self):
print_log(["stderr.log", "stdout.log", print_log(["stderr.log", "stdout.log",
"log/serving.ERROR", "PipelineServingLogs/pipeline.log"], iden="after predict") "log/serving.ERROR", "PipelineServingLogs/pipeline.log"], iden="after predict")
kill_process(9998) kill_process(9998)
self.serving_util.release() self.serving_util.release('web_service')
def get_truth_val_by_inference(self): def get_truth_val_by_inference(self):
try: try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册