From 7140c75f635b4b05f6c88020c0397f6d6fae3d99 Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Mon, 23 Mar 2020 01:43:42 +0100 Subject: [PATCH] Update application.go --- application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.go b/application.go index 3ed656f2..b0af55ea 100644 --- a/application.go +++ b/application.go @@ -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: