diff --git a/helper/schema/resource_test.go b/helper/schema/resource_test.go index e406e55b9..8027f5fb1 100644 --- a/helper/schema/resource_test.go +++ b/helper/schema/resource_test.go @@ -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) } diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index e532a81b9..9a77cda2f 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -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)