diff --git a/vsphere/resource_vsphere_vmfs_datastore_test.go b/vsphere/resource_vsphere_vmfs_datastore_test.go index 497ee3bcd..eb49b8c8f 100644 --- a/vsphere/resource_vsphere_vmfs_datastore_test.go +++ b/vsphere/resource_vsphere_vmfs_datastore_test.go @@ -144,7 +144,7 @@ func TestAccResourceVSphereVmfsDatastore(t *testing.T) { Config: testAccResourceVSphereVmfsDatastoreConfigStaticSingleFolder(), Check: resource.ComposeTestCheckFunc( testAccResourceVSphereVmfsDatastoreExists(true), - testAccResourceVSphereVmfsDatastoreMatchInventoryPath("datastore-folder"), + testAccResourceVSphereVmfsDatastoreMatchInventoryPath(os.Getenv("VSPHERE_DS_FOLDER")), ), }, }, @@ -171,7 +171,7 @@ func TestAccResourceVSphereVmfsDatastore(t *testing.T) { ExpectError: expectErrorIfNotVirtualCenter(), Check: resource.ComposeTestCheckFunc( testAccResourceVSphereVmfsDatastoreExists(true), - testAccResourceVSphereVmfsDatastoreMatchInventoryPath("datastore-folder"), + testAccResourceVSphereVmfsDatastoreMatchInventoryPath(os.Getenv("VSPHERE_DS_FOLDER")), ), }, },