enhance: fix old pr cpp format issue (#30894)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/30883/head
congqixia 2024-02-28 16:28:20 +08:00 committed by GitHub
parent f658dd5faa
commit a115b731ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 7 deletions

View File

@ -4035,8 +4035,8 @@ TEST(CApiTest, SealedSegment_search_without_predicates) {
std::vector<CPlaceholderGroup> placeholderGroups;
placeholderGroups.push_back(placeholderGroup);
CSearchResult search_result;
auto res = CSearch(
segment, plan, placeholderGroup, N + ts_offset, &search_result);
auto res =
CSearch(segment, plan, placeholderGroup, N + ts_offset, &search_result);
std::cout << res.error_msg << std::endl;
ASSERT_EQ(res.error_code, Success);

View File

@ -662,8 +662,8 @@ TEST(AlwaysTrueStringPlan, SearchWithOutputFields) {
MetricType metric_type = knowhere::metric::L2;
query::dataset::SearchDataset search_dataset{
metric_type, //
num_queries, //
topk, //
num_queries, //
topk, //
round_decimal,
dim, //
query_ptr //

View File

@ -45,9 +45,24 @@ TEST(Tracer, Span) {
initTelemetry(*config);
auto ctx = std::make_shared<TraceContext>();
ctx->traceID = new uint8_t[16]{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10};
ctx->spanID = new uint8_t[8]{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef};
ctx->traceID = new uint8_t[16]{0x01,
0x23,
0x45,
0x67,
0x89,
0xab,
0xcd,
0xef,
0xfe,
0xdc,
0xba,
0x98,
0x76,
0x54,
0x32,
0x10};
ctx->spanID =
new uint8_t[8]{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef};
ctx->traceFlags = 1;
auto span = StartSpan("test", ctx.get());