From c5c72b1ce1d15f0b6cb43dd70a261b877894c958 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 10 Oct 2014 10:26:48 -0700 Subject: [PATCH] providers/aws: fix failing test --- builtin/providers/aws/structure_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/structure_test.go b/builtin/providers/aws/structure_test.go index 49b42458f5..f5b28eb1d8 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)