From ac167c308217262e5dea14edd4033be009f647eb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 23 Feb 2015 22:10:31 -0800 Subject: [PATCH] terraform: test post state update is called --- terraform/context_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/context_test.go b/terraform/context_test.go index e4359685f7..5ee9a8c71b 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -4454,6 +4454,9 @@ func TestContext2Apply_hook(t *testing.T) { if !h.PostApplyCalled { t.Fatal("should be called") } + if !h.PostStateUpdateCalled { + t.Fatalf("should call post state update") + } } func TestContext2Apply_idAttr(t *testing.T) {