mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
ci: explain why ci runs tests in serial now
This commit is contained in:
@@ -16,6 +16,9 @@ func SkipSlow(t *testing.T, reason string) {
|
||||
}
|
||||
|
||||
// Parallel runs t in parallel, unless CI is set to a true value.
|
||||
//
|
||||
// In CI (CircleCI / GitHub Actions) we get better performance by running tests
|
||||
// in serial while not restricting GOMAXPROCS.
|
||||
func Parallel(t *testing.T) {
|
||||
value := os.Getenv("CI")
|
||||
isCI, err := strconv.ParseBool(value)
|
||||
|
||||
Reference in New Issue
Block a user