~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5247.3.10.

  • Committer: Vincent Ladeuil
  • Date: 2010-06-02 17:51:51 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-20100602175151-3ftaxftor7ls5lye
Test errors during server life.

* bzrlib/tests/test_test_server.py:
(TCPClient.disconnect): Be more robust on errors.
(TestTestingServerInAThread.get_server): Add some optional
parameters.
(TestTestingServerInAThread.test_server_fails_to_start)
(TestTestingServerInAThread.test_server_fails_while_serving_or_stoping):
Test exception catching in during the significant steps.

* bzrlib/tests/test_server.py:
(TestingTCPServer.handle_error): Override the default behavior, we
want the exception to be raised.
(TestingTCPServerInAThread.start_server): Once the server is
started, we need another event to sync with the main thread.
(TestingTCPServerInAThread.stop_server): Don't forget to join the
thread !

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: