Update application.go

This commit is contained in:
Fenny 2020-03-23 01:43:42 +01:00
parent 614453e6ba
commit 7140c75f63

View File

@ -419,7 +419,7 @@ func (app *App) Test(request *http.Request, msTimeout ...int) (*http.Response, e
go func() {
channel <- app.server.ServeConn(conn)
}()
if timeout == 0 || timeout == -1 {
if timeout < 0 {
// Wait for callback
select {
case err := <-channel: