mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Merge pull request #537 from nats-io/bump_check_cluster_timeout
Bumped timeout for checkClusterFormed and use stackFatalf()
This commit is contained in:
@@ -148,7 +148,7 @@ func checkClusterFormed(t *testing.T, servers ...*Server) {
|
||||
// Wait for the cluster to form
|
||||
var err string
|
||||
expectedNumRoutes := len(servers) - 1
|
||||
maxTime := time.Now().Add(5 * time.Second)
|
||||
maxTime := time.Now().Add(10 * time.Second)
|
||||
for time.Now().Before(maxTime) {
|
||||
err = ""
|
||||
for _, s := range servers {
|
||||
@@ -164,7 +164,7 @@ func checkClusterFormed(t *testing.T, servers ...*Server) {
|
||||
}
|
||||
}
|
||||
if err != "" {
|
||||
t.Fatalf("%s", err)
|
||||
stackFatalf(t, "%s", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user