From 6369c175952540da4b2b6058a516d6bd711700cc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 3 Dec 2015 19:19:41 -0800 Subject: [PATCH] test_transit: use better error in Accumulator apparently this was broken before, but never got triggered --- src/wormhole/test/test_transit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/test/test_transit.py b/src/wormhole/test/test_transit.py index bb0623e..0ebb750 100644 --- a/src/wormhole/test/test_transit.py +++ b/src/wormhole/test/test_transit.py @@ -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