From 60fb19409027d00b1462f3612d30e202c5df7826 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 18 Dec 2013 16:44:56 -0800 Subject: [PATCH] Make tests more reliable --- consul/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/server_test.go b/consul/server_test.go index 1d26a9ffa4..9931c3ee75 100644 --- a/consul/server_test.go +++ b/consul/server_test.go @@ -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 {