提交 2a8c45d3 编写于 作者: X Xu Peng

test(db): check add vectors result size


Former-commit-id: d72021ae7c0fc69c840780d023d6a7573b618ce5
上级 ac7092f5
...@@ -74,7 +74,7 @@ TEST_F(DBTest, DB_TEST) { ...@@ -74,7 +74,7 @@ TEST_F(DBTest, DB_TEST) {
for (auto result : results[k]) { for (auto result : results[k]) {
ss << result << " "; ss << result << " ";
} }
LOG(DEBUG) << ss.str(); /* LOG(DEBUG) << ss.str(); */
} }
ASSERT_TRUE(count >= prev_count); ASSERT_TRUE(count >= prev_count);
std::this_thread::sleep_for(std::chrono::seconds(1)); std::this_thread::sleep_for(std::chrono::seconds(1));
...@@ -86,6 +86,7 @@ TEST_F(DBTest, DB_TEST) { ...@@ -86,6 +86,7 @@ TEST_F(DBTest, DB_TEST) {
for (auto i=0; i<loop; ++i) { for (auto i=0; i<loop; ++i) {
if (i==40) { if (i==40) {
db_->add_vectors(group_name, qb, qxb, target_ids); db_->add_vectors(group_name, qb, qxb, target_ids);
ASSERT_EQ(target_ids.size(), qb);
} else { } else {
db_->add_vectors(group_name, nb, xb, vector_ids); db_->add_vectors(group_name, nb, xb, vector_ids);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册