From bd0c3b12cb236c713bfa06e1bd61a79e838cf188 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 13 Feb 2015 16:28:31 -0800 Subject: [PATCH] terraform: more tests passing --- terraform/context_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/terraform/context_test.go b/terraform/context_test.go index 66b588a7d..0c7994458 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -4467,8 +4467,7 @@ func TestContext2Apply_vars(t *testing.T) { } } -/* -func TestContextApply_createBefore_depends(t *testing.T) { +func TestContext2Apply_createBefore_depends(t *testing.T) { m := testModule(t, "apply-depends-create-before") h := new(HookRecordApplyOrder) p := testProvider("aws") @@ -4501,7 +4500,7 @@ func TestContextApply_createBefore_depends(t *testing.T) { }, }, } - ctx := testContext(t, &ContextOpts{ + ctx := testContext2(t, &ContextOpts{ Module: m, Hooks: []Hook{h}, Providers: map[string]ResourceProviderFactory{ @@ -4546,9 +4545,7 @@ func TestContextApply_createBefore_depends(t *testing.T) { t.Fatalf("destroy must happen after update: %#v", order) } } -*/ -/* func TestContext2Apply_singleDestroy(t *testing.T) { m := testModule(t, "apply-depends-create-before") h := new(HookRecordApplyOrder) @@ -4635,7 +4632,6 @@ func TestContext2Apply_singleDestroy(t *testing.T) { t.Fatalf("bad: %d", invokeCount) } } -*/ func testContext2(t *testing.T, opts *ContextOpts) *Context2 { return NewContext2(opts)