Skip to content

Commit

Permalink
Merge #137440
Browse files Browse the repository at this point in the history
137440: kvserver: make TestRaftReceiveQueuesEnforceMaxLenConcurrency cheaper r=miraradeva a=sumeerbhola

It was timing out, though it completes within 6s on an M1 macbook.

Fixes #137380

Epic: none

Release note: None

Co-authored-by: sumeerbhola <[email protected]>
  • Loading branch information
craig[bot] and sumeerbhola committed Dec 14, 2024
2 parents 8f401f7 + a34f999 commit 49cff91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/store_raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49cff91

Please sign in to comment.