From 3659fd5203df5db79d7ec7a87991d5b9e5541396 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Tue, 23 Jun 2020 09:16:29 -0700 Subject: [PATCH] Use 0.6 CPU count by default --- test/integration/main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/main_test.go b/test/integration/main_test.go index c1eb1469f7..3514ef1bf6 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -81,8 +81,8 @@ func setMaxParallelism() { return } - // During "minikube start", minikube briefly consumes ~1.5 cores. Most of the time it's less. - limit := int(math.Floor(float64(procs) * 0.75)) + // Each "minikube start" consumes up to 2 cores - during startup, ~1.5 cores is typical + limit := int(math.Floor(float64(procs) * 0.6)) fmt.Fprintf(os.Stderr, "Found %d cores, limiting parallelism with --test.parallel=%d\n", procs, limit) if err := flag.Set("test.parallel", strconv.Itoa(limit)); err != nil { fmt.Fprintf(os.Stderr, "Unable to set test.parallel: %v\n", err)