test: Fix flaky courier test
In the upcoming Go release, logging from a finished testing.T triggers a panic. In the courier tests, this is possible because we don't wait for completion of fakeServer before ending the test. This patch makes the tests wait for fakeServer to finish before exiting, removing the race.
Showing with 13 additions and 4 deletions