提交 7e587046 编写于 作者: S starlord

fix unittest hang issue


Former-commit-id: 1e6b431332c823fbbef29132eaaaaff86b8afe7e
上级 44c382da
...@@ -62,6 +62,7 @@ class RpcHandlerTest : public testing::Test { ...@@ -62,6 +62,7 @@ class RpcHandlerTest : public testing::Test {
res_mgr->Connect("cpu", "gtx1660", PCIE); res_mgr->Connect("cpu", "gtx1660", PCIE);
res_mgr->Start(); res_mgr->Start();
engine::SchedInst::GetInstance()->Start(); engine::SchedInst::GetInstance()->Start();
engine::JobMgrInst::GetInstance()->Start();
engine::DBOptions opt; engine::DBOptions opt;
...@@ -105,6 +106,7 @@ class RpcHandlerTest : public testing::Test { ...@@ -105,6 +106,7 @@ class RpcHandlerTest : public testing::Test {
void void
TearDown() override { TearDown() override {
server::DBWrapper::GetInstance().StopService(); server::DBWrapper::GetInstance().StopService();
engine::JobMgrInst::GetInstance()->Stop();
engine::ResMgrInst::GetInstance()->Stop(); engine::ResMgrInst::GetInstance()->Stop();
engine::SchedInst::GetInstance()->Stop(); engine::SchedInst::GetInstance()->Stop();
boost::filesystem::remove_all("/tmp/milvus_test"); boost::filesystem::remove_all("/tmp/milvus_test");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册