Merge pull request #3785 from whit537/over-parallelization

Provide hint about test over-parallelization
This commit is contained in:
James Phillips 2018-01-05 13:56:31 -08:00 committed by GitHub
commit 2aab5001cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,9 @@ $ bin/consul
*Note: `make` will also place a copy of the binary in the first part of your `$GOPATH`.*
You can run tests by typing `make test`.
You can run tests by typing `make test`. The test suite may fail if
over-parallelized, so if you are seeing stochastic failures try
`GOTEST_FLAGS="-p 2 -parallel 2" make test`.
If you make any changes to the code, run `make format` in order to automatically
format the code according to Go standards.

View File

@ -18,7 +18,7 @@ func TestOperatorAutopilotSetConfigCommand_noTabs(t *testing.T) {
}
}
func TestOperatorAutopilotSetConfigCommmand(t *testing.T) {
func TestOperatorAutopilotSetConfigCommand(t *testing.T) {
t.Parallel()
a := agent.NewTestAgent(t.Name(), ``)
defer a.Shutdown()