From 9428e9f1d1e26aaaac63457fcf95e4d7518f72ee Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Thu, 29 Oct 2015 18:06:30 -0500 Subject: [PATCH] command: fix failing TestPlan_noState test Turns out that isolating statefiles in the Apply tests is an important step to prevent leaking .tfstate in a common dir, which can affect other tests. --- command/apply_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/apply_test.go b/command/apply_test.go index c831c82970..21a063a395 100644 --- a/command/apply_test.go +++ b/command/apply_test.go @@ -61,6 +61,7 @@ func TestApply(t *testing.T) { func TestApply_parallelism(t *testing.T) { provider := testProvider() + statePath := testTempFile(t) // This blocks all the appy functions. We close it when we exit so // they end quickly after this test finishes. @@ -91,6 +92,7 @@ func TestApply_parallelism(t *testing.T) { par := uint64(5) args := []string{ + "-state", statePath, fmt.Sprintf("-parallelism=%d", par), testFixturePath("parallelism"), }