From a34f999cc541d1786a12a69d1583c9c400ade680 Mon Sep 17 00:00:00 2001 From: sumeerbhola Date: Fri, 13 Dec 2024 15:32:58 -0500 Subject: [PATCH] kvserver: make TestRaftReceiveQueuesEnforceMaxLenConcurrency cheaper It was timing out, though it completes within 6s on an M1 macbook. Fixes #137380 Epic: none Release note: None --- pkg/kv/kvserver/store_raft_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kv/kvserver/store_raft_test.go b/pkg/kv/kvserver/store_raft_test.go index f7919e91db8e..d5a6bea66c4f 100644 --- a/pkg/kv/kvserver/store_raft_test.go +++ b/pkg/kv/kvserver/store_raft_test.go @@ -270,7 +270,7 @@ func TestRaftReceiveQueuesEnforceMaxLenConcurrency(t *testing.T) { } // Iterate and set different values of enforceMaxLen. enforceMaxLen := false - for i := 0; i < 200; i++ { + for i := 0; i < 25; i++ { // NB: SetEnforceMaxLen runs concurrently with LoadOrCreate calls. qs.SetEnforceMaxLen(enforceMaxLen) // Exclude all LoadOrCreate calls while checking is happening.