[tor-commits] [stem/master] Explicitly enable Controller value caching

atagar at torproject.org atagar at torproject.org
Sun Jan 6 23:09:08 UTC 2013


commit e69530c8af668f7b5f20c350c460e21c0b0cf081
Author: Sean Robinson <seankrobinson at gmail.com>
Date:   Sat Jan 5 14:15:21 2013 -0700

    Explicitly enable Controller value caching
    
    I'll be playing with turning caching on and off later, so I'll set a
    known state.
    
    Signed-off-by: Sean Robinson <seankrobinson at gmail.com>
---
 test/unit/control/controller.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/unit/control/controller.py b/test/unit/control/controller.py
index 0e1baae..3b8a52d 100644
--- a/test/unit/control/controller.py
+++ b/test/unit/control/controller.py
@@ -16,7 +16,7 @@ from test import mocking
 class TestControl(unittest.TestCase):
   def setUp(self):
     socket = stem.socket.ControlSocket()
-    self.controller = Controller(socket)
+    self.controller = Controller(socket, enable_caching = True)
   
   def tearDown(self):
     mocking.revert_mocking()





More information about the tor-commits mailing list