mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-27 09:43:53 +00:00
Fix goroutine T.Fatalf
This commit is contained in:
parent
4dddc24f24
commit
a154363999
@ -110,16 +110,12 @@ func Test_Listen(t *testing.T) {
|
||||
app.Banner = false
|
||||
go func() {
|
||||
time.Sleep(1 * time.Second)
|
||||
if err := app.Shutdown(); err != nil {
|
||||
t.Fatalf(`%s: Shutdown %v`, t.Name(), err)
|
||||
}
|
||||
app.Shutdown()
|
||||
}()
|
||||
app.Listen(3002)
|
||||
go func() {
|
||||
time.Sleep(1 * time.Second)
|
||||
if err := app.Shutdown(); err != nil {
|
||||
t.Fatalf(`%s: Shutdown %v`, t.Name(), err)
|
||||
}
|
||||
app.Shutdown()
|
||||
}()
|
||||
app.Listen("3002")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user