test_transit: use better error in Accumulator

apparently this was broken before, but never got triggered
This commit is contained in:
Brian Warner 2015-12-03 19:19:41 -08:00
parent 085b28f97d
commit 6369c17595

View File

@ -26,7 +26,7 @@ class Accumulator(protocol.Protocol):
d.callback(self)
def connectionLost(self, why):
if self._wait:
self._wait.errback("closed")
self._wait.errback(RuntimeError("closed"))
class Transit(ServerBase, unittest.TestCase):
@defer.inlineCallbacks