Skip to content

Commit

Permalink
fixed some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelrod committed Jun 2, 2023
1 parent 5980e4b commit 9b00502
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exporters/otlp/test/otlp_metrics_serialization_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static metrics_sdk::MetricData CreateSumAggregationData()
point_data_attr_1.point_data = s_data_1;

point_data_attr_2.attributes = {{"k2", "v2"}};
point_data_attr_2.point_data = s_data_1;
point_data_attr_2.point_data = s_data_2;
std::vector<metrics_sdk::PointDataAttributes> point_data_attr;
point_data_attr.push_back(point_data_attr_1);
point_data_attr.push_back(point_data_attr_2);
Expand All @@ -51,7 +51,7 @@ static metrics_sdk::MetricData CreateUpDownCounterAggregationData()
metrics_sdk::InstrumentType::kUpDownCounter,
metrics_sdk::InstrumentValueType::kDouble};
metrics_sdk::SumPointData s_data_1, s_data_2;
s_data_2.value_ = 1.35;
s_data_1.value_ = 1.35;
s_data_2.value_ = 1.37;

data.aggregation_temporality = metrics_sdk::AggregationTemporality::kCumulative;
Expand All @@ -62,7 +62,7 @@ static metrics_sdk::MetricData CreateUpDownCounterAggregationData()
point_data_attr_1.point_data = s_data_1;

point_data_attr_2.attributes = {{"robot_id", "DEV-AYS-03-02"}};
point_data_attr_2.point_data = s_data_1;
point_data_attr_2.point_data = s_data_2;
std::vector<metrics_sdk::PointDataAttributes> point_data_attr;
point_data_attr.push_back(point_data_attr_1);
point_data_attr.push_back(point_data_attr_2);
Expand Down Expand Up @@ -95,7 +95,7 @@ static metrics_sdk::MetricData CreateHistogramAggregationData()
point_data_attr_1.point_data = s_data_1;

point_data_attr_2.attributes = {{"k2", "v2"}};
point_data_attr_2.point_data = s_data_1;
point_data_attr_2.point_data = s_data_2;
std::vector<metrics_sdk::PointDataAttributes> point_data_attr;
point_data_attr.push_back(point_data_attr_1);
point_data_attr.push_back(point_data_attr_2);
Expand All @@ -122,7 +122,7 @@ static metrics_sdk::MetricData CreateObservableGaugeAggregationData()
point_data_attr_1.point_data = s_data_1;

point_data_attr_2.attributes = {{"k2", "v2"}};
point_data_attr_2.point_data = s_data_1;
point_data_attr_2.point_data = s_data_2;
std::vector<metrics_sdk::PointDataAttributes> point_data_attr;
point_data_attr.push_back(point_data_attr_1);
point_data_attr.push_back(point_data_attr_2);
Expand Down

0 comments on commit 9b00502

Please sign in to comment.