Browse Source

Re-configure `LeaderLeaseTimeout` to pass validation

pull/183/head
William Tisäter 11 years ago
parent
commit
9e3ad6721c
  1. 1
      command/agent/agent_test.go
  2. 1
      command/util_test.go
  3. 1
      consul/server_test.go

1
command/agent/agent_test.go

@ -44,6 +44,7 @@ func nextConfig() *Config {
cons.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
cons.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
cons.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
cons.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
cons.RaftConfig.ElectionTimeout = 40 * time.Millisecond

1
command/util_test.go

@ -95,6 +95,7 @@ func nextConfig() *agent.Config {
cons.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
cons.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
cons.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
cons.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
cons.RaftConfig.ElectionTimeout = 40 * time.Millisecond

1
consul/server_test.go

@ -59,6 +59,7 @@ func testServerConfig(t *testing.T, NodeName string) (string, *Config) {
config.SerfWANConfig.MemberlistConfig.ProbeInterval = 100 * time.Millisecond
config.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
config.RaftConfig.LeaderLeaseTimeout = 20 * time.Millisecond
config.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
config.RaftConfig.ElectionTimeout = 40 * time.Millisecond

Loading…
Cancel
Save