Closed vitaly-krugl closed 12 years ago
There is a bug in your test.
def handleChannel1Closed(ch, channelImpl):
print "CHANNEL1 CLOSED: %r" % (channelImpl.close_info,)
channel1CloseWaiter.set()
should be:
def handleChannel1Closed(ch, channelImpl):
print "CHANNEL1 CLOSED: %r" % (ch.close_info,)
channel1CloseWaiter.set()
This results in a call to Channel.close
after Channel._closed_cb
has run. I can improve the safety in that situation so that the error is reraised and you'll see the bug.
Hi Aaron, is it possible to have my code snippet that reproduced the failure added to haigha unit tests suite? I would do it myself, but I am baffled how to do this with Chai/mock.
This happens every time with haigha 0.5.3 with gevent transport when running the following app. However, the app works fine with haigha 0.4.1. I am using gevent 1.0b2, but am pretty sure this failure is not related to gevent.
The traceback looks like this:
This is the app that reproduces the failure with gevent 0.5.3