diff --git a/builtin/providers/aws/resource_aws_lambda_function_test.go b/builtin/providers/aws/resource_aws_lambda_function_test.go index 2e1bab1bc..d85bd7e8d 100644 --- a/builtin/providers/aws/resource_aws_lambda_function_test.go +++ b/builtin/providers/aws/resource_aws_lambda_function_test.go @@ -3,7 +3,6 @@ package aws import ( "fmt" "testing" - "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lambda" @@ -54,7 +53,6 @@ func testAccCheckLambdaFunctionDestroy(s *terraform.State) error { func testAccCheckAwsLambdaFunctionExists(n string, function *lambda.GetFunctionOutput) resource.TestCheckFunc { // Wait for IAM role - time.Sleep(100 * time.Millisecond) return func(s *terraform.State) error { rs, ok := s.RootModule().Resources[n] if !ok {