提交 12bb81c5 编写于 作者: S starlord

refine code


Former-commit-id: d878f03aeb45f3a78d1e7676de4645e6fe4469f0
上级 a30a638d
......@@ -150,27 +150,6 @@ zilliz::milvus::engine::Options MySqlMetaTest::GetOptions() {
return options;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void MemManagerTest::SetUp() {
DBTest::SetUp();
auto res_mgr = engine::ResMgrInst::GetInstance();
res_mgr->Add(engine::ResourceFactory::Create("disk", "DISK", 0, true, false));
res_mgr->Add(engine::ResourceFactory::Create("cpu", "CPU", 0, true, true));
auto default_conn = engine::Connection("IO", 500.0);
res_mgr->Connect("disk", "cpu", default_conn);
res_mgr->Start();
engine::SchedInst::GetInstance()->Start();
}
void MemManagerTest::TearDown() {
DBTest::TearDown();
engine::ResMgrInst::GetInstance()->Stop();
engine::SchedInst::GetInstance()->Stop();
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
......
......@@ -83,6 +83,4 @@ class MySqlMetaTest : public BaseTest {
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
class MemManagerTest : public DBTest {
void SetUp() override;
void TearDown() override;
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册