From 7c17a6704c3c8e3deff408763c6ca78b920c2b7f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 26 Sep 2016 13:41:18 +0200 Subject: [PATCH] [release/1.4.14] build: limit test concurrency TravisCI and AppVeyor run the tests in very slow VMs. Some of our tests can't cope with that. Running less tests in parallel should make them somewhat less flakey. (cherry picked from commit b0a6b979a3f12e91cfbc89850bfaa00c46653e85) --- build/ci.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/ci.go b/build/ci.go index 3011a69769..87e8b6275f 100644 --- a/build/ci.go +++ b/build/ci.go @@ -227,6 +227,9 @@ func doTest(cmdline []string) { // Run the actual tests. gotest := goTool("test") + // Test a single package at a time. CI builders are slow + // and some tests run into timeouts under load. + gotest.Args = append(gotest.Args, "-p", "1") if *coverage { gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover") }