mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-14 19:29:30 +00:00
Correct some resource leaks in tests.
This commit is contained in:
parent
4360bc298a
commit
00759ed20b
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,7 @@ class ProcessorTests(ProcessorTestCase):
|
|||
|
||||
self.statsd_server.transports[0].close()
|
||||
await self.wait_for(self.statsd_server.client_connected.acquire())
|
||||
await self.wait_for(processor.stop())
|
||||
|
||||
async def test_connection_failures(self):
|
||||
processor = statsd.Processor(host=self.statsd_server.host,
|
||||
|
@ -115,6 +116,7 @@ class ProcessorTests(ProcessorTestCase):
|
|||
processor.port = self.statsd_server.port
|
||||
|
||||
await self.wait_for(self.statsd_server.client_connected.acquire())
|
||||
await self.wait_for(processor.stop())
|
||||
|
||||
async def test_that_stopping_when_not_running_is_safe(self):
|
||||
processor = statsd.Processor(host=self.statsd_server.host,
|
||||
|
|
Loading…
Reference in a new issue