revert to explicitly declare schema for TestLocal_applyEmptyDirDestroy

This commit is contained in:
Kristin Laemmert 2018-10-02 14:58:50 -07:00 committed by Martin Atkins
parent 739bd5ef0d
commit d865df7338
1 changed files with 11 additions and 1 deletions

View File

@ -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