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
internal/core/unittest
|
@ -4035,8 +4035,8 @@ TEST(CApiTest, SealedSegment_search_without_predicates) {
|
||||||
std::vector<CPlaceholderGroup> placeholderGroups;
|
std::vector<CPlaceholderGroup> placeholderGroups;
|
||||||
placeholderGroups.push_back(placeholderGroup);
|
placeholderGroups.push_back(placeholderGroup);
|
||||||
CSearchResult search_result;
|
CSearchResult search_result;
|
||||||
auto res = CSearch(
|
auto res =
|
||||||
segment, plan, placeholderGroup, N + ts_offset, &search_result);
|
CSearch(segment, plan, placeholderGroup, N + ts_offset, &search_result);
|
||||||
std::cout << res.error_msg << std::endl;
|
std::cout << res.error_msg << std::endl;
|
||||||
ASSERT_EQ(res.error_code, Success);
|
ASSERT_EQ(res.error_code, Success);
|
||||||
|
|
||||||
|
|
|
@ -45,9 +45,24 @@ TEST(Tracer, Span) {
|
||||||
initTelemetry(*config);
|
initTelemetry(*config);
|
||||||
|
|
||||||
auto ctx = std::make_shared<TraceContext>();
|
auto ctx = std::make_shared<TraceContext>();
|
||||||
ctx->traceID = new uint8_t[16]{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
|
ctx->traceID = new uint8_t[16]{0x01,
|
||||||
0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10};
|
0x23,
|
||||||
ctx->spanID = new uint8_t[8]{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef};
|
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;
|
ctx->traceFlags = 1;
|
||||||
auto span = StartSpan("test", ctx.get());
|
auto span = StartSpan("test", ctx.get());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue