Skip to content

Commit

Permalink
fix_: flaky TestSignalsServer (#5838)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Sep 16, 2024
1 parent f51d465 commit 596d75a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/statusd/server/signals_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func (s *Server) Listen(address string) error {
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)
if err != nil {
Expand Down

0 comments on commit 596d75a

Please sign in to comment.