command/e2etest: fix TestPrimarySeparatePlan test

In 6712192724 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.
This commit is contained in:
Martin Atkins 2017-09-19 11:25:31 -07:00
parent feb3883568
commit cb6d4e5f20
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ func TestPrimarySeparatePlan(t *testing.T) {
t.Fatalf("unexpected destroy error: %s\nstderr:\n%s", err, stderr) t.Fatalf("unexpected destroy error: %s\nstderr:\n%s", err, stderr)
} }
if !strings.Contains(stdout, "Resources: 2 destroyed") { if !strings.Contains(stdout, "Resources: 1 destroyed") {
t.Errorf("incorrect destroy tally; want 2 destroyed:\n%s", stdout) t.Errorf("incorrect destroy tally; want 1 destroyed:\n%s", stdout)
} }
state, err = tf.LocalState() state, err = tf.LocalState()