From a1a26344b7143b148f4c4bcac84de7fd0aa1174d Mon Sep 17 00:00:00 2001 From: Lalit Date: Mon, 15 Aug 2022 14:10:32 -0700 Subject: [PATCH] fix --- sdk/test/metrics/meter_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/test/metrics/meter_test.cc b/sdk/test/metrics/meter_test.cc index 0a279a5af2..efec7c0412 100644 --- a/sdk/test/metrics/meter_test.cc +++ b/sdk/test/metrics/meter_test.cc @@ -51,13 +51,13 @@ void asyc_generate_measurements(opentelemetry::metrics::ObserverResult observer, TEST(MeterTest, BasicAsyncTests) { - MetricReader *metricReaderPtr = nullptr; - auto meter = InitMeter(&metricReaderPtr); - auto observable_counter = meter->CreateLongObservableCounter("observable_counter"); + MetricReader *metric_reader_ptr = nullptr; + auto meter = InitMeter(&metric_reader_ptr); + auto observable_counter = meter->CreateLongObservableCounter("observable_counter"); observable_counter->AddCallback(asyc_generate_measurements, nullptr); size_t count = 0; - metricReaderPtr->Collect([&count](ResourceMetrics &metric_data) { + metric_reader_ptr->Collect([&count](ResourceMetrics &metric_data) { EXPECT_EQ(metric_data.scope_metric_data_.size(), 1); if (metric_data.scope_metric_data_.size()) {