From d865df73382dfbeb765f97224090b2c331620edf Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Tue, 2 Oct 2018 14:58:50 -0700 Subject: [PATCH] revert to explicitly declare schema for TestLocal_applyEmptyDirDestroy --- backend/local/backend_apply_test.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/local/backend_apply_test.go b/backend/local/backend_apply_test.go index 3b265bd12..9e24b91a7 100644 --- a/backend/local/backend_apply_test.go +++ b/backend/local/backend_apply_test.go @@ -122,7 +122,17 @@ func TestLocal_applyEmptyDirDestroy(t *testing.T) { func TestLocal_applyError(t *testing.T) { b, cleanup := TestLocal(t) defer cleanup() - p := TestLocalProvider(t, b, "test", applyFixtureSchema()) + p := TestLocalProvider(t, b, "test", nil) + p.GetSchemaReturn = &terraform.ProviderSchema{ + ResourceTypes: map[string]*configschema.Block{ + "test_instance": { + Attributes: map[string]*configschema.Attribute{ + "ami": {Type: cty.String, Optional: true}, + "id": {Type: cty.String, Computed: true}, + }, + }, + }, + } var lock sync.Mutex errored := false