mirror of
https://github.com/golang/go
synced 2024-11-21 11:44:43 -07:00
dont block on httptest.Server.Start when serveFlag is present
The presence of the `httptest.serve=<addr>` flag seems to switch the expectation of how the `httptest.Server.Start()` works since it is currently blocking after printing the url. Unless I am missing something, we don't really need that blocking `select {}` after the print.
This commit is contained in:
parent
44f1870666
commit
b0f937a19e
@ -134,7 +134,6 @@ func (s *Server) Start() {
|
||||
s.goServe()
|
||||
if serveFlag != "" {
|
||||
fmt.Fprintln(os.Stderr, "httptest: serving on", s.URL)
|
||||
select {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user