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

[tor-commits] [stem/master] Test still used old arg name for socket connections



commit 617661308bbc70c08b2d45767965969c690ac9f9
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Wed Mar 20 09:50:12 2013 -0700

    Test still used old arg name for socket connections
    
    Oops. When running other targets we were sometimes hitting an instance that
    still used 'socket_path' rather than 'path'. Caught by gsathya.
---
 test/integ/control/controller.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index 6b5c407..804565a 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -57,7 +57,7 @@ class TestController(unittest.TestCase):
       return
 
     if test.runner.Torrc.SOCKET in test.runner.get_runner().get_options():
-      with stem.control.Controller.from_socket_file(socket_path = test.runner.CONTROL_SOCKET_PATH) as controller:
+      with stem.control.Controller.from_socket_file(path = test.runner.CONTROL_SOCKET_PATH) as controller:
         self.assertTrue(isinstance(controller, stem.control.Controller))
     else:
       self.assertRaises(stem.SocketError, stem.control.Controller.from_socket_file, test.runner.CONTROL_SOCKET_PATH)

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