Improve tests
Keeping this open as a general issue for improving existing unit tests. PRs welcome.
Also relevant, feedback in issue #96
Also, sometimes the tests fail on Travis, but all green when the build is restarted - TODO: investigare why and find a solution.
https://travis-ci.org/flashmob/go-guerrilla/jobs/389595164 --- FAIL: TestServerStopEvent (1.98s) serve_test.go:637: Could not connect to new server 127.0.0.1:2228
Merged #131 which included a lot of fixes to tests, mostly adding better error checking. The test errors mentioned above were due to race conditions, were fixed. Smoke tests (i.e. TestServerStopEvent) are now more reliable.
Keeping this open as a general issue for improving existing unit tests. PRs welcome.