[tor-bugs] #7558 [Stem]: Minor bug in control test

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 8 14:36:10 UTC 2012


#7558: Minor bug in control test
---------------------+------------------------------------------------------
 Reporter:  eoinof   |          Owner:  atagar           
     Type:  defect   |         Status:  needs_information
 Priority:  normal   |      Milestone:                   
Component:  Stem     |        Version:                   
 Keywords:  testing  |         Parent:                   
   Points:           |   Actualpoints:                   
---------------------+------------------------------------------------------

Comment(by eoinof):

 Hi Daniel, sorry for the delay,

 I managed to reproduce the problem, though it's a pretty unusual
 situation so maybe it's not a bug?

 I remembered that I had been deleting some files so I checked what ones
 had been recently replaced.

 I deleted the contents of /stem/test/data and then ran the integ tests
 while not
 connected to the internet


 This was how the test failed.
 {{{
 FAIL: test_enable_feature
 ----------------------------------------------------------------------
 Traceback:
   File "/home/eoin/stem/test/integ/control/controller.py", line 346, in
 test_enable_feature
     self.assertTrue(re.match("\$[0-9a-fA-F]{40}[~=].*",
 controller.get_info('orconn-status').split()[0]))
 AssertionError: None is not true
 }}}

 I then started tor using the newly created config file
 /stem/test/data/torrc

 This is what I see in telnet
 {{{
 eoin at eoin-VirtualBox:~/stem$ telnet localhost 1111
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 AUTHENTICATE
 250 OK
 USEFEATURE VERBOSE_NAMES
 250 OK
 GETINFO version
 250-version=0.2.2.35 (git-73ff13ab3cc9570d)
 250 OK
 GETINFO orconn-status
 250-orconn-status=$F397038ADC51336135E7B80BD99CA3844360292B LAUNCHED
 250 OK
 GETINFO orconn-status
 250-orconn-status=
 250 OK
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7558#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list