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:
Derek Collison
2023-03-28 23:07:38 -07:00
parent 0d9f707b4b
commit 52fbac644c

View File

@@ -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
}