Added param options to /healthz endpoint

This commit is contained in:
Muhammad Faizan
2022-08-03 10:25:50 +02:00
parent ed2cb280cc
commit 1634f33de7
5 changed files with 66 additions and 8 deletions

View File

@@ -1194,13 +1194,13 @@ func (c *cluster) waitOnServerHealthz(s *Server) {
c.t.Helper()
expires := time.Now().Add(30 * time.Second)
for time.Now().Before(expires) {
hs := s.healthz()
hs := s.healthz(nil)
if hs.Status == "ok" && hs.Error == _EMPTY_ {
return
}
time.Sleep(100 * time.Millisecond)
}
c.t.Fatalf("Expected server %q to eventually return healthz 'ok', but got %q", s, s.healthz().Error)
c.t.Fatalf("Expected server %q to eventually return healthz 'ok', but got %q", s, s.healthz(nil).Error)
}
func (c *cluster) waitOnServerCurrent(s *Server) {