[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit cb55eeac8ae78aada114d229aa1cc076b62ba821
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
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'))



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits