From acb55ecc1bbcfc77bdec5c29bb044f8096c1b6ce Mon Sep 17 00:00:00 2001 From: Raphael Randschau Date: Wed, 1 Feb 2017 06:46:18 +0100 Subject: [PATCH] provider/aws: code review feedback --- builtin/providers/aws/data_source_aws_ecs_cluster_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/data_source_aws_ecs_cluster_test.go b/builtin/providers/aws/data_source_aws_ecs_cluster_test.go index 4c92c77b0..25b0fbe0f 100644 --- a/builtin/providers/aws/data_source_aws_ecs_cluster_test.go +++ b/builtin/providers/aws/data_source_aws_ecs_cluster_test.go @@ -2,10 +2,9 @@ package aws import ( "fmt" - "math/rand" "testing" - "time" + "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" ) @@ -58,4 +57,4 @@ resource "aws_ecs_service" "mongo" { data "aws_ecs_cluster" "default" { cluster_name = "${aws_ecs_cluster.default.name}" } -`, rand.New(rand.NewSource(time.Now().UnixNano())).Int()) +`, acctest.RandInt())