Skip to content

Commit

Permalink
build: limit test concurrency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fjl committed Sep 26, 2016
1 parent 2e14aff commit b0a6b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b0a6b97

Please sign in to comment.