helper/schema: call InternalValidate w/ schemaMap{}

This commit is contained in:
Justin Campbell 2015-05-12 11:01:02 -04:00
parent 1e3d1b07e6
commit bb14bfa657
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ func TestResourceInternalValidate(t *testing.T) {
}
for i, tc := range cases {
err := tc.In.InternalValidate()
err := tc.In.InternalValidate(schemaMap{})
if (err != nil) != tc.Err {
t.Fatalf("%d: bad: %s", i, err)
}

View File

@ -2799,7 +2799,7 @@ func TestSchemaMap_InternalValidate(t *testing.T) {
}
for i, tc := range cases {
err := schemaMap(tc.In).InternalValidate()
err := schemaMap(tc.In).InternalValidate(schemaMap{})
if (err != nil) != tc.Err {
if tc.Err {
t.Fatalf("%d: Expected error did not occur:\n\n%#v", i, tc.In)