From 52fbac644ca46b7aaedaa6ef28c34084911d3548 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Tue, 28 Mar 2023 23:07:38 -0700 Subject: [PATCH] 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 --- server/jetstream_helpers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/jetstream_helpers_test.go b/server/jetstream_helpers_test.go index a17038ca..b671602f 100644 --- a/server/jetstream_helpers_test.go +++ b/server/jetstream_helpers_test.go @@ -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 }