diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-09 20:35:33 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | cbc0406be844894cac08c457544f1eb0c28435bb (patch) | |
tree | 1bb063df91f3d49ba6824aadc502045ac3819b97 /tests/metrics/test_metric.py | |
parent | Count incoming HTTP requests per servlet that responds (diff) | |
download | synapse-cbc0406be844894cac08c457544f1eb0c28435bb.tar.xz |
Export CacheMetric as hits+total, rather than hits+misses, as it's easier to derive hit ratio from that
Diffstat (limited to '')
-rw-r--r-- | tests/metrics/test_metric.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/metrics/test_metric.py b/tests/metrics/test_metric.py index 1919630feb..193908b44e 100644 --- a/tests/metrics/test_metric.py +++ b/tests/metrics/test_metric.py @@ -140,7 +140,7 @@ class CacheMetricTestCase(unittest.TestCase): self.assertEquals(metric.render(), [ 'cache:hits 0', - 'cache:misses 0', + 'cache:total 0', 'cache:size 0', ]) @@ -149,7 +149,7 @@ class CacheMetricTestCase(unittest.TestCase): self.assertEquals(metric.render(), [ 'cache:hits 0', - 'cache:misses 1', + 'cache:total 1', 'cache:size 1', ]) @@ -157,6 +157,6 @@ class CacheMetricTestCase(unittest.TestCase): self.assertEquals(metric.render(), [ 'cache:hits 1', - 'cache:misses 1', + 'cache:total 2', 'cache:size 1', ]) |