From 17856108308145e9ea6ba3d5921df3c1f1a63701 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Tue, 5 Nov 2024 05:29:12 +0000 Subject: [PATCH] Update test --- api/test/trace/propagation/detail/string_test.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/test/trace/propagation/detail/string_test.cc b/api/test/trace/propagation/detail/string_test.cc index 96a506cfc9..67a48a354c 100644 --- a/api/test/trace/propagation/detail/string_test.cc +++ b/api/test/trace/propagation/detail/string_test.cc @@ -25,7 +25,6 @@ struct SplitStringTestData // See https://github.com/google/googletest/issues/3805. friend void PrintTo(const SplitStringTestData &data, std::ostream *os) { - std::stringstream ss; *os << "(" << data.input << "," << data.separator << "," << data.max_count << "," << data.expected_number_strings << ")"; } @@ -50,8 +49,7 @@ class SplitStringTestFixture : public ::testing::TestWithParam fields{}; - fields.reserve(test_param.expected_number_strings); + std::vector fields(test_param.expected_number_strings); size_t got_splits_num = opentelemetry::trace::propagation::detail::SplitString( test_param.input, test_param.separator, fields.data(), test_param.max_count);