From bb14bfa6571864e64f66c9c0bd9939246b959597 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 12 May 2015 11:01:02 -0400 Subject: [PATCH] helper/schema: call InternalValidate w/ schemaMap{} --- helper/schema/resource_test.go | 2 +- helper/schema/schema_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)