aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-01-13 17:31:14 +0900
committerdkanada <dkanada@users.noreply.github.com>2020-01-13 17:31:14 +0900
commitd461f46befb06dae742ab523a3b28dadbff853f3 (patch)
treeec8ce987584dc0e83425a806fcec069d2436801a /tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
parent9eac19c75ad9c69c0c30ae90c0772856e7b0ce9e (diff)
ignore drive name in windows environments
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs')
-rw-r--r--tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs b/tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs
index 182c70998..de227cd85 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