Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Sep 21, 2023
1 parent 9f01fd4 commit 5d24d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporters/prometheus/test/exporter_utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ TEST(PrometheusExporterUtils, TranslateToPrometheusHistogramNormal)
{
if (label.name == "job")
{
ASSERT_EQ(label.value, "test_service2");
// job label should be ignored when service.name exist
ASSERT_EQ(label.value, "unknown_service");
checked_label_num++;
}
else if (label.name == "instance")
Expand Down

0 comments on commit 5d24d88

Please sign in to comment.