~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5247.5.9.

  • Committer: Vincent Ladeuil
  • Date: 2010-06-07 16:06:46 UTC
  • mto: (5247.6.1 http-leaks)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100607160646-9ptl3fgz09l8igy3
Use a better sync for test_exception_swallowed_while_serving test.

* bzrlib/tests/test_test_server.py:
(TestTCPServerInAThread.test_exception_swallowed_while_serving.FailingWhileServingConnectionHandler):
We need to make sure the exception has been recorded which
requires using the thread event.

* bzrlib/tests/test_server.py:
(TestingTCPServerMixin.serve): Make sure we clear the 'stopped'
event.
(TestingTCPServerMixin.shutdown_socket): Can also be used for the
server socket.
(TestingTCPServerInAThread.stop_server): Swallow ignored
exceptions when joining the server thread.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: