[tor-bugs] #27053 [Core Tor/Stem]: Check controller's event error handling

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 10 18:23:31 UTC 2018


#27053: Check controller's event error handling
---------------------------+------------------------
 Reporter:  atagar         |          Owner:  atagar
     Type:  defect         |         Status:  new
 Priority:  Very High      |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Major          |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------
Changes (by dmr):

 * cc: dmr (added)


Comment:

 Replying to [comment:3 atagar]:
 > [...] Pushed tests that repro the issues mentioned above...
 >
 > https://gitweb.torproject.org/stem.git/commit/?id=b557d09
 >
 > I'll push fixes for these in the next few days.

 One of these tests is failing intermittently. I've seen 3 failures in
 py35, and no failures in py27 //(yet, at least)//. Here's the output:
 {{{
 ======================================================================
 FAIL: test_events_get_received
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
     return func(*args, **keywargs)
   File "/path/to/test/unit/control/controller.py", line 633, in
 test_events_get_received
     self.circ_listener.assert_called_once_with(CIRC_EVENT)
   File "/usr/lib/python3.5/unittest/mock.py", line 804, in
 assert_called_once_with
     raise AssertionError(msg)
 AssertionError: Expected 'mock' to be called once. Called 0 times.
 }}}

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


More information about the tor-bugs mailing list