mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix insertion unitest
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
887d9d7af6
commit
2017434509
@ -587,7 +587,6 @@ SegmentNaive::BuildIndex(IndexMetaPtr remote_index_meta) {
|
||||
if(record_.ack_responder_.GetAck() < 1024 * 4) {
|
||||
return Status(SERVER_BUILD_INDEX_ERROR, "too few elements");
|
||||
}
|
||||
index_meta_ = remote_index_meta;
|
||||
for (auto&[index_name, entry]: index_meta_->get_entries()) {
|
||||
assert(entry.index_name == index_name);
|
||||
const auto &field = (*schema_)[entry.field_name];
|
||||
|
||||
@ -238,7 +238,7 @@ TEST(CApiTest, BuildIndexTest) {
|
||||
CQueryInfo queryInfo{1, 10, "fakevec"};
|
||||
|
||||
auto sea_res = Search(
|
||||
segment, queryInfo, 20, query_raw_data.data(), DIM, result_ids, result_distances);
|
||||
segment, queryInfo, 1, query_raw_data.data(), DIM, result_ids, result_distances);
|
||||
assert(sea_res == 0);
|
||||
|
||||
DeleteCollection(collection);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user