provider/aws: fix ELB acc tests

* LB Name test could end up too long and fail
 * CheckDestroy was looking for the wrong error code
This commit is contained in:
Paul Hinze 2015-12-22 07:41:24 -06:00
parent 10cc513ae0
commit bf40c48075
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ func TestAccAWSELB_basic(t *testing.T) {
func TestAccAWSELB_fullCharacterRange(t *testing.T) {
var conf elb.LoadBalancerDescription
lbName := fmt.Sprintf("FoobarTerraform-test123-%d",
lbName := fmt.Sprintf("Tf-%d",
rand.New(rand.NewSource(time.Now().UnixNano())).Int())
resource.Test(t, resource.TestCase{
@ -560,7 +560,7 @@ func testAccCheckAWSELBDestroy(s *terraform.State) error {
return err
}
if providerErr.Code() != "InvalidLoadBalancerName.NotFound" {
if providerErr.Code() != "LoadBalancerNotFound" {
return fmt.Errorf("Unexpected error: %s", err)
}
}