diff --git a/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/DataProtectionProviderTests.cs b/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/DataProtectionProviderTests.cs index 63931f2f8f..7c7bcf9c36 100644 --- a/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/DataProtectionProviderTests.cs +++ b/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/DataProtectionProviderTests.cs @@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.DataProtection Assert.NotNull(FileSystemXmlRepository.DefaultKeyStorageDirectory); var keysPath = FileSystemXmlRepository.DefaultKeyStorageDirectory.FullName; - var tempPath = FileSystemXmlRepository.DefaultKeyStorageDirectory.FullName + "Temp"; + var tempPath = FileSystemXmlRepository.DefaultKeyStorageDirectory.FullName + Path.GetRandomFileName(); try {