[Twisted-Python] defer.TimeoutError in tests

Itamar Turner-Trauring itamar at futurefoundries.com
Wed Nov 7 07:16:42 EST 2012


On Wed, Nov 7, 2012 at 6:11 AM, Maxim Lacrima <lacrima.maxim at gmail.com>wrote:


> When I run these tests, the following errors may or may not occur:
> [ERROR]
> Traceback (most recent call last):
> Failure: twisted.internet.defer.TimeoutError: <...>  still running at
> 120.0 secs
>
> [ERROR]
> Traceback (most recent call last):
> Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was
> unclean.
> Selectables:
> <<class 'twisted.internet.tcp.Client'> to ('localhost', 8081) at 1eb1750>
>
> I don't understand these errors. The server is up and running, but for
> some reason connections are timed out.
>

The connection isn't timing out, the *test* is timing out. The connection
may be working just fine.

Due to an unknown reason, presumably a bug in your code (or test code), the
Deferred you are returning from the test method isn't being fired. E.g.
you're not calling callback()/errback(), or a callback method you added is
returning a Deferred that is in turn not being fired.

-- 
Itamar Turner-Trauring, Future Foundries LLC
http://futurefoundries.com/ — Twisted consulting, training and support.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20121107/15d1a229/attachment.htm 


More information about the Twisted-Python mailing list