ignore drive name in windows environments

This commit is contained in:
dkanada 2020-01-13 17:31:14 +09:00
parent 9eac19c75a
commit d461f46bef
1 changed files with 1 additions and 1 deletions

View File

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