diff --git a/README.md b/README.md index 6a21df7ef6..078dc4b40d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/command/operator/autopilot/set/operator_autopilot_set_test.go b/command/operator/autopilot/set/operator_autopilot_set_test.go index 264c2bcf38..461917165d 100644 --- a/command/operator/autopilot/set/operator_autopilot_set_test.go +++ b/command/operator/autopilot/set/operator_autopilot_set_test.go @@ -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()