summaryrefslogtreecommitdiffstats
path: root/metrics/src/tests/countmetrictest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/src/tests/countmetrictest.cpp')
-rw-r--r--metrics/src/tests/countmetrictest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/metrics/src/tests/countmetrictest.cpp b/metrics/src/tests/countmetrictest.cpp
index 8ef551ead53..af94f78dfdf 100644
--- a/metrics/src/tests/countmetrictest.cpp
+++ b/metrics/src/tests/countmetrictest.cpp
@@ -20,7 +20,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(CountMetricTest);
void CountMetricTest::testLongCountMetric()
{
- LongCountMetric m("test", "tag", "description");
+ LongCountMetric m("test", {{"tag"}}, "description");
m.set(100);
CPPUNIT_ASSERT_EQUAL(uint64_t(100), m.getValue());
m.inc(5);
@@ -32,7 +32,7 @@ void CountMetricTest::testLongCountMetric()
m.reset();
CPPUNIT_ASSERT_EQUAL(uint64_t(0), m.getValue());
- LongCountMetric n("m2", "", "desc");
+ LongCountMetric n("m2", {}, "desc");
n.set(6);
CPPUNIT_ASSERT_EQUAL(uint64_t(6), n.getValue());