From 8bcf08bbf7ffdc0fea7432e56e753e380372fe15 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Wed, 3 Sep 2025 00:04:42 +0300 Subject: [PATCH] test: Remove darwin hardcoded parallel limit On darwin parallel was limited to 2 instead of nproc/1.75. Hopefully this will speed up integration tests that take about 1 hour with the hard coded limit. --- test/integration/main_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/integration/main_test.go b/test/integration/main_test.go index 29354089fc..4c249cec00 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -97,16 +97,11 @@ func setMaxParallelism() { // Each "minikube start" consumes up to 2 cores, though the average usage is somewhat lower limit := int(math.Floor(float64(maxp) / 1.75)) - // Windows and MacOS tests were failing from timeouts due to too much parallelism + // Windows tests were failing from timeouts due to too much parallelism if runtime.GOOS == "windows" { limit /= 2 } - // Hardcode limit to 2 for macOS - if runtime.GOOS == "darwin" { - limit = 2 - } - fmt.Fprintf(os.Stderr, "Found %d cores, limiting parallelism with --test.parallel=%d\n", maxp, limit) if err := flag.Set("test.parallel", strconv.Itoa(limit)); err != nil { fmt.Fprintf(os.Stderr, "Unable to set test.parallel: %v\n", err)