Tests: Teach Server test to wait for server exit
We expect the server to exit when its communication pipes are closed. Close them and wait for the server to exit. If supported by the current version of python, kill the server if it does not exit after a few seconds.
Showing with 14 additions and 0 deletions