mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Fixd test on mono.
This commit is contained in:
parent
9a3f49bf9c
commit
13c625d7c0
@ -4,6 +4,7 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Mono.Unix;
|
using Mono.Unix;
|
||||||
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
using NzbDrone.Common.Test.DiskTests;
|
using NzbDrone.Common.Test.DiskTests;
|
||||||
@ -93,6 +94,10 @@ namespace NzbDrone.Mono.Test.DiskProviderTests
|
|||||||
|
|
||||||
private void GivenSpecialMount(string rootDir)
|
private void GivenSpecialMount(string rootDir)
|
||||||
{
|
{
|
||||||
|
Mocker.GetMock<ISymbolicLinkResolver>()
|
||||||
|
.Setup(v => v.GetCompleteRealPath(It.IsAny<string>()))
|
||||||
|
.Returns<string>(s => s);
|
||||||
|
|
||||||
Mocker.GetMock<IProcMountProvider>()
|
Mocker.GetMock<IProcMountProvider>()
|
||||||
.Setup(v => v.GetMounts())
|
.Setup(v => v.GetMounts())
|
||||||
.Returns(new List<IMount> {
|
.Returns(new List<IMount> {
|
||||||
@ -112,7 +117,7 @@ namespace NzbDrone.Mono.Test.DiskProviderTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestCase("/snap/blaat")]
|
[TestCase("/snap/blaat")]
|
||||||
[TestCase("/var/lib/docker/zfs-storage-moun")]
|
[TestCase("/var/lib/docker/zfs-storage-mount")]
|
||||||
public void should_return_special_mount_when_queried(string rootDir)
|
public void should_return_special_mount_when_queried(string rootDir)
|
||||||
{
|
{
|
||||||
GivenSpecialMount(rootDir);
|
GivenSpecialMount(rootDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user