From ad5899d8bb79f8b6f1de24855353c4f646cca160 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 11 Sep 2020 13:47:30 -0400 Subject: [PATCH] ReadResource is called during plan but not destroy --- command/plan_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/command/plan_test.go b/command/plan_test.go index e89103b792..46b631a6f0 100644 --- a/command/plan_test.go +++ b/command/plan_test.go @@ -96,10 +96,6 @@ func TestPlan_plan(t *testing.T) { if code := c.Run(args); code != 1 { t.Fatalf("wrong exit status %d; want 1\nstderr: %s", code, ui.ErrorWriter.String()) } - - if p.ReadResourceCalled { - t.Fatal("ReadResource should not have been called") - } } func TestPlan_destroy(t *testing.T) { @@ -142,10 +138,6 @@ func TestPlan_destroy(t *testing.T) { t.Fatalf("bad: %d\n\n%s", code, ui.ErrorWriter.String()) } - if !p.ReadResourceCalled { - t.Fatal("ReadResource should have been called") - } - plan := testReadPlan(t, outPath) for _, rc := range plan.Changes.Resources { if got, want := rc.Action, plans.Delete; got != want {