diff --git a/builtin/providers/aws/structure_test.go b/builtin/providers/aws/structure_test.go index 2f45d643c9..ace216e6b2 100644 --- a/builtin/providers/aws/structure_test.go +++ b/builtin/providers/aws/structure_test.go @@ -121,9 +121,7 @@ func TestexpandIPPerms(t *testing.T) { } func TestExpandIPPerms_NegOneProtocol(t *testing.T) { - hash := func(v interface{}) int { - return hashcode.String(v.(string)) - } + hash := schema.HashString expanded := []interface{}{ map[string]interface{}{