2
0
Эх сурвалжийг харах

move the split usage to the proper location

dkanada 5 жил өмнө
parent
commit
536237c35d

+ 2 - 2
tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs

@@ -31,8 +31,8 @@ namespace Jellyfin.Server.Implementations.Tests.IO
 
             if (MediaBrowser.Common.System.OperatingSystem.Id == OperatingSystemId.Windows)
             {
-                var expectedWindowsPath = expectedAbsolutePath.Replace('/', '\\').Split(':')[1];
-                Assert.Equal(expectedWindowsPath, generatedPath);
+                var expectedWindowsPath = expectedAbsolutePath.Replace('/', '\\');
+                Assert.Equal(expectedWindowsPath, generatedPath.Split(':')[1]);
             }
             else
             {