[tor-commits] [stem/master] Start shutting down controllers after running controller unit tests

atagar at torproject.org atagar at torproject.org
Thu Jul 16 01:29:00 UTC 2020


commit cb55eeac8ae78aada114d229aa1cc076b62ba821
Author: Illia Volochii <illia.volochii at gmail.com>
Date:   Sun May 24 01:12:21 2020 +0300

    Start shutting down controllers after running controller unit tests
---
 test/unit/control/controller.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/unit/control/controller.py b/test/unit/control/controller.py
index e4b11788..850918f7 100644
--- a/test/unit/control/controller.py
+++ b/test/unit/control/controller.py
@@ -55,6 +55,9 @@ class TestControl(unittest.TestCase):
       self.malformed_listener = Mock()
       self.controller.add_event_listener(self.malformed_listener, MALFORMED_EVENTS)
 
+  def tearDown(self):
+    self.controller.close()
+
   def test_event_description(self):
     self.assertEqual("Logging at the debug runlevel. This is low level, high volume information about tor's internals that generally isn't useful to users.", stem.control.event_description('DEBUG'))
     self.assertEqual('Event emitted every second with the bytes sent and received by tor.', stem.control.event_description('BW'))





More information about the tor-commits mailing list