diff options
Diffstat (limited to 'Magefile.go')
| -rw-r--r-- | Magefile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Magefile.go b/Magefile.go index d9ad29e..50d2bea 100644 --- a/Magefile.go +++ b/Magefile.go @@ -278,7 +278,7 @@ func IntegrationTestSerial() error { } // IntegrationTestParallel builds everything and runs integration tests in parallel. -// Set INTEGRATION_PARALLEL to tune `go test -parallel` (default: NumCPU/2, minimum 1). +// Set INTEGRATION_PARALLEL to tune `go test -parallel` (default: NumCPU*2, minimum 1). func IntegrationTestParallel() error { return runIntegrationTests(true) } @@ -323,7 +323,7 @@ func runIntegrationTests(parallel bool) error { func resolveIntegrationParallelism() (int, error) { parallel := strings.TrimSpace(os.Getenv(integrationParallel)) if parallel == "" { - n := runtime.NumCPU() / 2 + n := runtime.NumCPU() * 2 if n < 1 { n = 1 } |
