Make tests more reliable

This commit is contained in:
Armon Dadgar 2013-12-18 16:44:56 -08:00
parent 9c8af31036
commit 5fad6a7372
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ func testServerDC(t *testing.T, dc string) (string, *Server) {
config.SerfWANConfig.MemberlistConfig.ProbeInterval = time.Second
config.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
config.RaftConfig.HeartbeatTimeout = 50 * time.Millisecond
config.RaftConfig.ElectionTimeout = 50 * time.Millisecond
config.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
config.RaftConfig.ElectionTimeout = 40 * time.Millisecond
server, err := NewServer(config)
if err != nil {