providers/aws: fix failing test

This commit is contained in:
Mitchell Hashimoto 2014-10-10 10:26:48 -07:00
parent bd3bc03c5f
commit c5c72b1ce1
1 changed files with 8 additions and 1 deletions

View File

@ -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)