We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3642613 commit 90b07efCopy full SHA for 90b07ef
internal/core/concurrency.go
@@ -53,10 +53,9 @@ func (c Concurrency) SingleThreaded() bool {
53
}
54
55
func (c Concurrency) CheckerCount(numFiles int) int {
56
- if c.checkerCount == -1 {
57
- return max(1, numFiles)
58
- }
59
- return max(1, c.checkerCount)
+ checkerCount := min(c.checkerCount, numFiles)
+ checkerCount = max(1, checkerCount)
+ return checkerCount
60
61
62
var testProgramConcurrency = sync.OnceValues(func() (concurrency Concurrency, raw string) {
0 commit comments