Hi!<div><br></div><div>I have some tests that fail intermittently, i.e. sometimes they fail, sometimes they don't. These tests were written against real server.</div><div><br></div><div>When I run these tests, the following errors may or may not occur:</div>
<div><div>[ERROR]</div><div>Traceback (most recent call last):</div><div>Failure: twisted.internet.defer.TimeoutError: <...> still running at 120.0 secs</div></div><div><br></div><div><div>[ERROR]</div><div>Traceback (most recent call last):</div>
<div>Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.</div><div>Selectables:</div><div><<class 'twisted.internet.tcp.Client'> to ('localhost', 8081) at 1eb1750></div>
</div><div><br></div><div>I don't understand these errors. The server is up and running, but for some reason connections are timed out.</div><div><br></div><div>The code under test uses perspective broker to talk to the server. I can't figure out where the problem is -- on the server or in the code under test (the client).</div>
<div><br></div><div>I have found some information that can help me to tackle the problem -- <a href="http://twistedmatrix.com/trac/ticket/2869">http://twistedmatrix.com/trac/ticket/2869</a></div><div><br></div><div>But what can be the reason of such intermittent errors?</div>
<div><br></div><div>Sorry, right now I can't provide a self contained example that demonstrates the problem, because testing code is rather complex. At first, I would like to know if there is something I could pay attention to.</div>
<div><br></div><div>Thanks in advance.</div><div><div><br></div>-- <br>with regards,<br>Maxim<br>
</div>