mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Since we no longer store leaderTransfers, which is proper, some tests were getting and advantage on that after server restart.
This change speeds up raft layer more to avoid timeouts. Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -37,8 +37,8 @@ import (
|
||||
func init() {
|
||||
// Speed up raft for tests.
|
||||
hbInterval = 50 * time.Millisecond
|
||||
minElectionTimeout = 1 * time.Second
|
||||
maxElectionTimeout = 3 * time.Second
|
||||
minElectionTimeout = 250 * time.Millisecond
|
||||
maxElectionTimeout = 1 * time.Second
|
||||
lostQuorumInterval = time.Second
|
||||
lostQuorumCheck = 4 * hbInterval
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user