Wait for the server to listen.
Test cases sometimes hang because of that.