mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Increasing the timeout of waitOnClusterReady
Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
@@ -5136,7 +5136,7 @@ func (c *cluster) waitOnLeader() {
|
||||
func (c *cluster) waitOnClusterReady() {
|
||||
c.t.Helper()
|
||||
var leader *Server
|
||||
expires := time.Now().Add(10 * time.Second)
|
||||
expires := time.Now().Add(20 * time.Second)
|
||||
for time.Now().Before(expires) {
|
||||
if leader = c.leader(); leader != nil {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user