From 95323b537d1ac12e2e530933aa3f9090eace060b Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Tue, 15 Jul 2014 08:49:40 -0400 Subject: [PATCH] providers/aws: fix elb tests --- builtin/providers/aws/resource_aws_elb_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/resource_aws_elb_test.go b/builtin/providers/aws/resource_aws_elb_test.go index cb290c084..cbc465aa1 100644 --- a/builtin/providers/aws/resource_aws_elb_test.go +++ b/builtin/providers/aws/resource_aws_elb_test.go @@ -74,13 +74,16 @@ func testAccCheckAWSELBAttributes(conf *elb.LoadBalancer) resource.TestCheckFunc l := elb.Listener{ InstancePort: 8000, - InstanceProtocol: "http", + InstanceProtocol: "HTTP", LoadBalancerPort: 80, - Protocol: "http", + Protocol: "HTTP", } if !reflect.DeepEqual(conf.Listeners[0], l) { - return fmt.Errorf("bad listener") + return fmt.Errorf( + "Got:\n\n%#v\n\nExpected:\n\n%#v\n", + conf.Listeners[0], + l) } if conf.DNSName == "" {