remove the rand, it's not helping like I thought

This commit is contained in:
Clint Shryock 2015-02-20 15:49:51 -06:00
parent 4326b6b8b5
commit 5b35b85527
1 changed files with 3 additions and 5 deletions

View File

@ -2,9 +2,7 @@ package aws
import (
"fmt"
"math/rand"
"testing"
"time"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
@ -243,7 +241,7 @@ resource "aws_autoscaling_group" "bar" {
}
`
var testAccAWSAutoScalingGroupConfigWithLoadBalancer = fmt.Sprintf(`
const testAccAWSAutoScalingGroupConfigWithLoadBalancer = `
resource "aws_elb" "bar" {
name = "foobar-terraform-test"
availability_zones = ["us-west-2a"]
@ -264,7 +262,7 @@ resource "aws_launch_configuration" "foobar" {
resource "aws_autoscaling_group" "bar" {
availability_zones = ["us-west-2a"]
name = "foobar3-terraform-test-%d"
name = "foobar3-terraform-test"
max_size = 5
min_size = 2
health_check_grace_period = 300
@ -275,4 +273,4 @@ resource "aws_autoscaling_group" "bar" {
launch_configuration = "${aws_launch_configuration.foobar.name}"
load_balancers = ["${aws_elb.bar.name}"]
}
`, rand.New(rand.NewSource(time.Now().UnixNano())).Intn(64))
`