diff --git a/builtin/providers/aws/structure_test.go b/builtin/providers/aws/structure_test.go index 49b42458f..f5b28eb1d 100644 --- a/builtin/providers/aws/structure_test.go +++ b/builtin/providers/aws/structure_test.go @@ -170,7 +170,14 @@ func Test_flattenIPPerms(t *testing.T) { } func Test_expandListeners(t *testing.T) { - expanded := flatmap.Expand(testConf(), "listener").([]interface{}) + expanded := []interface{}{ + map[string]interface{}{ + "instance_port": 8000, + "lb_port": 80, + "instance_protocol": "http", + "lb_protocol": "http", + }, + } listeners, err := expandListeners(expanded) if err != nil { t.Fatalf("bad: %#v", err)