mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
Update application.go
This commit is contained in:
parent
614453e6ba
commit
7140c75f63
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user