diff --git a/internal/core/unittest/test_c_api.cpp b/internal/core/unittest/test_c_api.cpp index 4bd5a9d6a9..b8f09b6b51 100644 --- a/internal/core/unittest/test_c_api.cpp +++ b/internal/core/unittest/test_c_api.cpp @@ -4035,8 +4035,8 @@ TEST(CApiTest, SealedSegment_search_without_predicates) { std::vector 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); diff --git a/internal/core/unittest/test_string_expr.cpp b/internal/core/unittest/test_string_expr.cpp index f8c8b9589e..84b9160f64 100644 --- a/internal/core/unittest/test_string_expr.cpp +++ b/internal/core/unittest/test_string_expr.cpp @@ -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 // diff --git a/internal/core/unittest/test_tracer.cpp b/internal/core/unittest/test_tracer.cpp index e7db995015..d694dc0cfe 100644 --- a/internal/core/unittest/test_tracer.cpp +++ b/internal/core/unittest/test_tracer.cpp @@ -45,9 +45,24 @@ TEST(Tracer, Span) { initTelemetry(*config); auto ctx = std::make_shared(); - 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());