mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Failed startup was not flagged (#118)
The error propagation from srv.ListenAndServe did not work as intended, simplified it a bit and added a test for it.
This commit is contained in:
@@ -34,7 +34,7 @@ func Server(t *testing.T, corefile string) (*server.Server, string, string, erro
|
||||
}
|
||||
go srv.ListenAndServe()
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
time.Sleep(1 * time.Second) // yeah... I regret nothing
|
||||
tcp, udp := srv.LocalAddr()
|
||||
return srv, tcp.String(), udp.String(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user