diff --git a/src/NzbDrone.Common.Test/PathExtensionFixture.cs b/src/NzbDrone.Common.Test/PathExtensionFixture.cs index 58d28f52e..e3e7fb34a 100644 --- a/src/NzbDrone.Common.Test/PathExtensionFixture.cs +++ b/src/NzbDrone.Common.Test/PathExtensionFixture.cs @@ -196,7 +196,7 @@ public void get_actual_casing_for_none_existing_folder_return_partially_fixed_re public void get_actual_casing_should_return_actual_casing_for_local_file_in_windows() { WindowsOnly(); - var path = Environment.ExpandEnvironmentVariables("%SystemRoot%\\System32"); + var path = Directory.GetDirectories("C:\\")[3]; path.ToUpper().GetActualCasing().Should().Be(path); path.ToLower().GetActualCasing().Should().Be(path); }