From cb6d4e5f207003566beeda72bee01bc058000795 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 19 Sep 2017 11:25:31 -0700 Subject: [PATCH] command/e2etest: fix TestPrimarySeparatePlan test In 67121927240da830c12e366a0e1bd13bc65f3acb we stopped counting data source destroys in the destroy tally since they are an implementation detail. This caused this test to start failing, though since the new behavior is correct here we just update the test to match. --- command/e2etest/primary_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/e2etest/primary_test.go b/command/e2etest/primary_test.go index e0bccacc5..8e1f1496e 100644 --- a/command/e2etest/primary_test.go +++ b/command/e2etest/primary_test.go @@ -109,8 +109,8 @@ func TestPrimarySeparatePlan(t *testing.T) { t.Fatalf("unexpected destroy error: %s\nstderr:\n%s", err, stderr) } - if !strings.Contains(stdout, "Resources: 2 destroyed") { - t.Errorf("incorrect destroy tally; want 2 destroyed:\n%s", stdout) + if !strings.Contains(stdout, "Resources: 1 destroyed") { + t.Errorf("incorrect destroy tally; want 1 destroyed:\n%s", stdout) } state, err = tf.LocalState()