Hi!<div><br></div><div>I have some tests that fail intermittently, i.e. sometimes they fail, sometimes they don&#39;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: &lt;...&gt;  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>&lt;&lt;class &#39;twisted.internet.tcp.Client&#39;&gt; to (&#39;localhost&#39;, 8081) at 1eb1750&gt;</div>
</div><div><br></div><div>I don&#39;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&#39;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&#39;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>