Fix server test error check

This commit is contained in:
Chen-I Lim 2021-01-18 12:59:32 -08:00
parent 56eda6bbdf
commit 8b2d993675

View file

@ -40,7 +40,7 @@ func SetupTestHelper() *TestHelper {
func (th *TestHelper) InitBasic() *TestHelper {
go func() {
if err := th.Server.Start(); err != http.ErrServerClosed {
if err := th.Server.Start(); err != nil {
panic(err)
}
}()