From 4c23019ab7c49290ddb34a914b076dc86c6582a5 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Fri, 12 Dec 2014 15:42:01 +0100 Subject: [PATCH] core: fixing new test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the ‘hashcode’ function so we didn’t need to import it here, but also removed the needed type assertion. --- helper/schema/schema_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index b55ef7dba..175b16127 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -1480,7 +1480,7 @@ func TestSchemaMap_Diff(t *testing.T) { Optional: true, Computed: true, Set: func(v interface{}) int { - return len(v) + return len(v.(string)) }, }, },