summary refs log tree commit diff
path: root/tests/metrics/test_metric.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-06 15:35:23 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commitb3a0179d64c2c3b4f57688bdcceb818d0124c858 (patch)
tree2c326f0bd0b15e40689cdbdf27c7b062c2192e1e /tests/metrics/test_metric.py
parentRename Metrics' "keys" to "labels" (diff)
downloadsynapse-b3a0179d64c2c3b4f57688bdcceb818d0124c858.tar.xz
Bugfix to rendering output of vectored TimerMetrics
Diffstat (limited to '')
-rw-r--r--tests/metrics/test_metric.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/metrics/test_metric.py b/tests/metrics/test_metric.py
index fefe1a5867..75b6cbc924 100644
--- a/tests/metrics/test_metric.py
+++ b/tests/metrics/test_metric.py
@@ -124,10 +124,10 @@ class TimerMetricTestCase(unittest.TestCase):
         metric.inc_time(800, "INSERT")
 
         self.assertEquals(metric.render(), [
-            "queries{verb=INSERT}:count 1",
-            "queries{verb=INSERT}:msec 800",
-            "queries{verb=SELECT}:count 2",
-            "queries{verb=SELECT}:msec 500",
+            "queries:count{verb=INSERT} 1",
+            "queries:msec{verb=INSERT} 800",
+            "queries:count{verb=SELECT} 2",
+            "queries:msec{verb=SELECT} 500",
         ])