Browse Source

ignore drive name in windows environments

dkanada 5 năm trước cách đây
mục cha
commit
d461f46bef

+ 1 - 1
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