Skip to content

The Free Software Media System - Server Backend & API

ignore drive name in windows environments

dkanadad461f46befb0
diff --git a/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs b/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
index 182c709982..de227cd859 100644
--- a/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
+++ b/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
@@ -31,7 +31,7 @@ namespace Jellyfin.Server.Implementations.Tests.IO
if (MediaBrowser.Common.System.OperatingSystem.Id == OperatingSystemId.Windows)
{
- var expectedWindowsPath = "d:" + expectedAbsolutePath.Replace('/', '\\');
+ var expectedWindowsPath = expectedAbsolutePath.Replace('/', '\\').Split(':')[1];
Assert.Equal(expectedWindowsPath, generatedPath);
}
else