fix_: flaky TestSignalsServer (#5838)
This commit is contained in:
parent
f51d4654f6
commit
596d75ab79
|
@ -58,7 +58,9 @@ func (s *Server) Listen(address string) error {
|
||||||
ReadHeaderTimeout: 5 * time.Second,
|
ReadHeaderTimeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
http.HandleFunc("/signals", s.signals)
|
mux := http.NewServeMux()
|
||||||
|
mux.HandleFunc("/signals", s.signals)
|
||||||
|
s.server.Handler = mux
|
||||||
|
|
||||||
listener, err := net.Listen("tcp", address)
|
listener, err := net.Listen("tcp", address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue