소스 검색

ignore drive name in windows environments

dkanada 5 년 전
부모
커밋
d461f46bef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs

+ 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