Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
08ed782a
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
08ed782a
编写于
9月 10, 2019
作者:
S
starlord
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix unitest failure
Former-commit-id: 21ed773255ced64c264ab998058a27dd6f0d36bb
上级
b47abd51
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
2 deletion
+7
-2
cpp/unittest/db/db_tests.cpp
cpp/unittest/db/db_tests.cpp
+2
-2
cpp/unittest/db/utils.cpp
cpp/unittest/db/utils.cpp
+5
-0
未找到文件。
cpp/unittest/db/db_tests.cpp
浏览文件 @
08ed782a
...
@@ -378,11 +378,11 @@ TEST_F(DBTest, INDEX_TEST) {
...
@@ -378,11 +378,11 @@ TEST_F(DBTest, INDEX_TEST) {
ASSERT_TRUE
(
stat
.
ok
());
ASSERT_TRUE
(
stat
.
ok
());
engine
::
TableIndex
index_out
;
engine
::
TableIndex
index_out
;
stat
=
db_
->
DescribeIndex
(
table_info
.
table_id_
,
index
);
stat
=
db_
->
DescribeIndex
(
table_info
.
table_id_
,
index
_out
);
ASSERT_TRUE
(
stat
.
ok
());
ASSERT_TRUE
(
stat
.
ok
());
ASSERT_EQ
(
index
.
engine_type_
,
index_out
.
engine_type_
);
ASSERT_EQ
(
index
.
engine_type_
,
index_out
.
engine_type_
);
ASSERT_EQ
(
index
.
nlist_
,
index_out
.
nlist_
);
ASSERT_EQ
(
index
.
nlist_
,
index_out
.
nlist_
);
ASSERT_EQ
(
index
.
metric_type_
,
index_out
.
metric_type_
);
ASSERT_EQ
(
table_info
.
metric_type_
,
index_out
.
metric_type_
);
stat
=
db_
->
DropIndex
(
table_info
.
table_id_
);
stat
=
db_
->
DropIndex
(
table_info
.
table_id_
);
ASSERT_TRUE
(
stat
.
ok
());
ASSERT_TRUE
(
stat
.
ok
());
...
...
cpp/unittest/db/utils.cpp
浏览文件 @
08ed782a
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include "db/Factories.h"
#include "db/Factories.h"
#include "db/Options.h"
#include "db/Options.h"
#include "server/ServerConfig.h"
#include "server/ServerConfig.h"
#include "knowhere/index/vector_index/gpu_ivf.h"
INITIALIZE_EASYLOGGINGPP
INITIALIZE_EASYLOGGINGPP
...
@@ -59,6 +60,8 @@ engine::Options BaseTest::GetOptions() {
...
@@ -59,6 +60,8 @@ engine::Options BaseTest::GetOptions() {
void
DBTest
::
SetUp
()
{
void
DBTest
::
SetUp
()
{
BaseTest
::
SetUp
();
BaseTest
::
SetUp
();
zilliz
::
knowhere
::
FaissGpuResourceMgr
::
GetInstance
().
InitDevice
(
0
,
1024
*
1024
*
200
,
1024
*
1024
*
300
,
2
);
server
::
ConfigNode
&
config
=
server
::
ServerConfig
::
GetInstance
().
GetConfig
(
server
::
CONFIG_CACHE
);
server
::
ConfigNode
&
config
=
server
::
ServerConfig
::
GetInstance
().
GetConfig
(
server
::
CONFIG_CACHE
);
config
.
AddSequenceItem
(
server
::
CONFIG_GPU_IDS
,
"0"
);
config
.
AddSequenceItem
(
server
::
CONFIG_GPU_IDS
,
"0"
);
...
@@ -84,6 +87,8 @@ void DBTest::TearDown() {
...
@@ -84,6 +87,8 @@ void DBTest::TearDown() {
db_
->
DropAll
();
db_
->
DropAll
();
delete
db_
;
delete
db_
;
zilliz
::
knowhere
::
FaissGpuResourceMgr
::
GetInstance
().
Free
();
engine
::
ResMgrInst
::
GetInstance
()
->
Stop
();
engine
::
ResMgrInst
::
GetInstance
()
->
Stop
();
engine
::
SchedInst
::
GetInstance
()
->
Stop
();
engine
::
SchedInst
::
GetInstance
()
->
Stop
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录