Skip to content

Commit

Permalink
Merge pull request #2741 from terraform-providers/recovery/faulty_test
Browse files Browse the repository at this point in the history
fix TestAccAzureRMRecoveryServicesProtectedVm_separateResourceGroupstest
  • Loading branch information
tombuildsstuff authored Jan 23, 2019
2 parents ba63654 + df94c78 commit 8983a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azurerm/resource_arm_recovery_services_protected_vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func testCheckAzureRMRecoveryServicesProtectedVmExists(resourceName string) reso
}

func testAccAzureRMRecoveryServicesProtectedVm_base(rInt int, location string) string {
rstr := strconv.Itoa(rInt)
return fmt.Sprintf(`
resource "azurerm_resource_group" "test" {
name = "acctestRG-%[1]d"
Expand Down Expand Up @@ -281,7 +282,7 @@ resource "azurerm_recovery_services_protection_policy_vm" "test" {
count = 10
}
}
`, rInt, location, strconv.Itoa(rInt)[0:5])
`, rInt, location, rstr[len(rstr)-5:])
}

func testAccAzureRMRecoveryServicesProtectedVm_basic(rInt int, location string) string {
Expand Down

0 comments on commit 8983a66

Please sign in to comment.