trivial: statsd tests: remove references to delegate methods
Some tests previously made assertions on statsd client methods that were implemented by a delegated interface patched onto a logger instance. Those tests have run against a StatsdClient since the Related Change, so the use of the term 'delegate' in tests no longer makes sense. Change-Id: Ie47fa50a226da6ff7b067d6a367758ac9f12ef4c Related-Change: I3a677bb67c5700da48f89c847f652b4610ba47c2
This commit is contained in:
@@ -712,7 +712,6 @@ class TestGetStatsdClientOutput(BaseTestStatsdClientOutput):
|
|||||||
# No "log_statsd_host" means "disabled"
|
# No "log_statsd_host" means "disabled"
|
||||||
'log_statsd_port': str(self.port),
|
'log_statsd_port': str(self.port),
|
||||||
}, 'some-name')
|
}, 'some-name')
|
||||||
# Delegate methods are no-ops
|
|
||||||
self.assertIsNone(self.client.update_stats('foo', 88))
|
self.assertIsNone(self.client.update_stats('foo', 88))
|
||||||
self.assertIsNone(self.client.update_stats('foo', 88, 0.57))
|
self.assertIsNone(self.client.update_stats('foo', 88, 0.57))
|
||||||
self.assertIsNone(self.client.update_stats('foo', 88,
|
self.assertIsNone(self.client.update_stats('foo', 88,
|
||||||
@@ -733,7 +732,7 @@ class TestGetStatsdClientOutput(BaseTestStatsdClientOutput):
|
|||||||
# Now, the queue should be empty (no UDP packets sent)
|
# Now, the queue should be empty (no UDP packets sent)
|
||||||
self.assertRaises(Empty, self.queue.get_nowait)
|
self.assertRaises(Empty, self.queue.get_nowait)
|
||||||
|
|
||||||
def test_delegate_methods_with_no_default_sample_rate(self):
|
def test_methods_with_no_default_sample_rate(self):
|
||||||
self.client = get_statsd_client({
|
self.client = get_statsd_client({
|
||||||
'log_statsd_host': 'localhost',
|
'log_statsd_host': 'localhost',
|
||||||
'log_statsd_port': str(self.port),
|
'log_statsd_port': str(self.port),
|
||||||
@@ -792,7 +791,7 @@ class TestGetStatsdClientOutput(BaseTestStatsdClientOutput):
|
|||||||
self.assertStat('another.counter:3|c|@0.939',
|
self.assertStat('another.counter:3|c|@0.939',
|
||||||
self.client.update_stats, 'another.counter', 3, 0.939)
|
self.client.update_stats, 'another.counter', 3, 0.939)
|
||||||
|
|
||||||
def test_delegate_methods_with_default_sample_rate(self):
|
def test_methods_with_default_sample_rate(self):
|
||||||
self.client = get_statsd_client({
|
self.client = get_statsd_client({
|
||||||
'log_statsd_host': 'localhost',
|
'log_statsd_host': 'localhost',
|
||||||
'log_statsd_port': str(self.port),
|
'log_statsd_port': str(self.port),
|
||||||
@@ -844,7 +843,7 @@ class TestGetStatsdClientOutput(BaseTestStatsdClientOutput):
|
|||||||
self.client.update_stats, 'another.counter',
|
self.client.update_stats, 'another.counter',
|
||||||
3, 0.987654)
|
3, 0.987654)
|
||||||
|
|
||||||
def test_delegate_methods_with_metric_prefix(self):
|
def test_methods_with_metric_prefix(self):
|
||||||
self.client = get_statsd_client({
|
self.client = get_statsd_client({
|
||||||
'log_statsd_host': 'localhost',
|
'log_statsd_host': 'localhost',
|
||||||
'log_statsd_port': str(self.port),
|
'log_statsd_port': str(self.port),
|
||||||
|
|||||||
Reference in New Issue
Block a user