Author: bkuhn
Date: Sun Jul  5 18:35:23 2009
New Revision: 6008

URL: http://svn.gna.org/viewcvs/pokersource?rev=6008&view=rev
Log:
Address timing issues that have been causing intermittent pokerlock test 
failure.

In this pursuit, I have changed all direct tests of get_messages() into
search_output()s.  They really should be search_output()s anywy, because
its very easy for threaded code to throw something additional in the
output from another thread.  What we really care about is that the strings
we seek do definitely appear.

For test02_wait(), which checks for coverage of the line:
            raise Exception(PokerLock.TIMED_OUT, name)

I have made the timeout be zero, so that it happens right away.  I think
this might address the timing issue.

Finally, for test01_simple(), I have left it disabled (although now with a
return True rather than commented out), since it wasn't needed for full
coverage.

Modified:
    branches/coverage-poker-network/poker-network/ChangeLog
    branches/coverage-poker-network/poker-network/tests/test-pokerlock.py.in


_______________________________________________
Pokersource-commits mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-commits

Reply via email to