mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
tests: Avoid StartAsLeader raft config flag
It's being deprecated
This commit is contained in:
@@ -351,7 +351,6 @@ func (a *TestAgent) config() *Config {
|
||||
config.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
|
||||
config.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
|
||||
config.RaftConfig.ElectionTimeout = 40 * time.Millisecond
|
||||
config.RaftConfig.StartAsLeader = true
|
||||
config.RaftTimeout = 500 * time.Millisecond
|
||||
|
||||
// Tighten the autopilot timing
|
||||
|
||||
@@ -86,7 +86,6 @@ func TestServer(t testing.T, cb func(*Config)) (*Server, func()) {
|
||||
cb(config)
|
||||
}
|
||||
|
||||
// Enable raft as leader if we have bootstrap on
|
||||
catalog := consul.NewMockCatalog(config.Logger)
|
||||
|
||||
acls := consul.NewMockACLsAPI(config.Logger)
|
||||
|
||||
Reference in New Issue
Block a user