mirror of https://github.com/milvus-io/milvus.git
enhance: fix old pr cpp format issue (#30894)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/30883/head
parent
f658dd5faa
commit
a115b731ed
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 //
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue