diff --git a/aws/resource_aws_workspaces_workspace_test.go b/aws/resource_aws_workspaces_workspace_test.go index ca41d084cb3..ca33900ba67 100644 --- a/aws/resource_aws_workspaces_workspace_test.go +++ b/aws/resource_aws_workspaces_workspace_test.go @@ -16,13 +16,13 @@ import ( ) func init() { - resource.AddTestSweepers("aws_workspace", &resource.Sweeper{ - Name: "aws_workspace", - F: testSweepWorkspaces, + resource.AddTestSweepers("aws_workspaces_workspace", &resource.Sweeper{ + Name: "aws_workspaces_workspace", + F: testSweepWorkspacesWorkspace, }) } -func testSweepWorkspaces(region string) error { +func testSweepWorkspacesWorkspace(region string) error { client, err := sharedClientForRegion(region) if err != nil { return fmt.Errorf("error getting client: %w", err)