提交 a9b5ec7c 编写于 作者: J jinhai

Merge branch 'branch-0.4.0' into 'branch-0.4.0'

fix unittest failure

See merge request megasearch/milvus!472

Former-commit-id: 1c56ddd3262644d69227b75b253d74f070e597ca
......@@ -12,6 +12,7 @@
#include "utils.h"
#include "db/Factories.h"
#include "db/Options.h"
#include "server/ServerConfig.h"
INITIALIZE_EASYLOGGINGPP
......@@ -60,6 +61,9 @@ engine::Options DBTest::GetOptions() {
void DBTest::SetUp() {
InitLog();
server::ConfigNode& config = server::ServerConfig::GetInstance().GetConfig(server::CONFIG_CACHE);
config.AddSequenceItem(server::CONFIG_GPU_IDS, "0");
auto res_mgr = engine::ResMgrInst::GetInstance();
res_mgr->Clear();
res_mgr->Add(engine::ResourceFactory::Create("disk", "DISK", 0, true, false));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册