From 923e2c853594ba0e29e7ee225bdf2b79a98679e4 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Fri, 5 Jan 2018 15:24:44 -0500 Subject: [PATCH 1/2] Fix typo --- command/operator/autopilot/set/operator_autopilot_set_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/operator/autopilot/set/operator_autopilot_set_test.go b/command/operator/autopilot/set/operator_autopilot_set_test.go index 264c2bcf3..461917165 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() From 72e2947ec56a85e8f012924e1d82f44f84ce3f8f Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Fri, 5 Jan 2018 16:47:14 -0500 Subject: [PATCH 2/2] Provide hint about test over-parallelization --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a21df7ef..078dc4b40 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.