mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 19:08:22 +00:00
Make tests more reliable
This commit is contained in:
parent
108df68d3d
commit
60fb194090
@ -50,8 +50,8 @@ func testServerDC(t *testing.T, dc string) (string, *Server) {
|
|||||||
config.SerfWANConfig.MemberlistConfig.ProbeInterval = time.Second
|
config.SerfWANConfig.MemberlistConfig.ProbeInterval = time.Second
|
||||||
config.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
|
config.SerfWANConfig.MemberlistConfig.GossipInterval = 100 * time.Millisecond
|
||||||
|
|
||||||
config.RaftConfig.HeartbeatTimeout = 50 * time.Millisecond
|
config.RaftConfig.HeartbeatTimeout = 40 * time.Millisecond
|
||||||
config.RaftConfig.ElectionTimeout = 50 * time.Millisecond
|
config.RaftConfig.ElectionTimeout = 40 * time.Millisecond
|
||||||
|
|
||||||
server, err := NewServer(config)
|
server, err := NewServer(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user