提交 4cbdb587 编写于 作者: G groot

redefine thrift api


Former-commit-id: ed64f6205c2723111f3bc2771836a265b2474817
上级 487ea034
......@@ -13,10 +13,6 @@ using namespace zilliz::vecwise;
TEST(IdMapperTest, IDMAPPER_TEST) {
std::string db_path = "/tmp/vecwise_test";
server::ConfigNode& server_config = server::ServerConfig::GetInstance().GetConfig("server_config");
server_config.SetValue("db_path", db_path);
server::IVecIdMapper* mapper = server::IVecIdMapper::GetInstance();
std::vector<std::string> nid = {"1", "50", "900", "10000"};
......
......@@ -7,9 +7,15 @@
#include <gmock/gmock.h>
#include <easylogging++.h>
#include "server/ServerConfig.h"
INITIALIZE_EASYLOGGINGPP
int main(int argc, char **argv) {
std::string config_filename = "../../../conf/server_config.yaml";
zilliz::vecwise::server::ServerConfig& config = zilliz::vecwise::server::ServerConfig::GetInstance();
config.LoadConfigFile(config_filename);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册