summaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/metrics/metric_registry_ut.cpp
diff options
context:
space:
mode:
authorArslan Urtashev <[email protected]>2022-02-10 16:48:55 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:55 +0300
commitb97740540e7302cec9efa181e106ae1990a0cc1c (patch)
tree1a2a0bfe523c3272d207e2d75254a41d3945a3bb /library/cpp/monlib/metrics/metric_registry_ut.cpp
parent31789673dc3562bc7540e00fe031ba84ae282c24 (diff)
Restoring authorship annotation for Arslan Urtashev <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/metrics/metric_registry_ut.cpp')
-rw-r--r--library/cpp/monlib/metrics/metric_registry_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/monlib/metrics/metric_registry_ut.cpp b/library/cpp/monlib/metrics/metric_registry_ut.cpp
index 86d9a52ec0c..10002a38972 100644
--- a/library/cpp/monlib/metrics/metric_registry_ut.cpp
+++ b/library/cpp/monlib/metrics/metric_registry_ut.cpp
@@ -157,15 +157,15 @@ Y_UNIT_TEST_SUITE(TMetricRegistryTest) {
Y_UNIT_TEST(DoubleCounter) {
TMetricRegistry registry(TLabels{{"common", "label"}});
-
+
TCounter* c = registry.Counter({{"my", "counter"}});
UNIT_ASSERT_VALUES_EQUAL(c->Get(), 0);
- c->Add(10);
-
- c = registry.Counter({{"my", "counter"}});
+ c->Add(10);
+
+ c = registry.Counter({{"my", "counter"}});
UNIT_ASSERT_VALUES_EQUAL(c->Get(), 10);
- }
-
+ }
+
Y_UNIT_TEST(Sample) {
TMetricRegistry registry(TLabels{{"common", "label"}});