1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

fixing Linux integration tests

This commit is contained in:
Keivan Beigi 2013-08-26 12:35:53 -07:00
parent 9370edb48c
commit 75371c4e72
3 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,5 @@
using System.IO; using System;
using System.IO;
using FluentAssertions; using FluentAssertions;
using NUnit.Framework; using NUnit.Framework;
using NzbDrone.Common; using NzbDrone.Common;
@ -13,7 +14,7 @@ public class FreeDiskSpaceFixture : CoreTest<DiskProvider>
[Test] [Test]
public void should_return_free_disk_space() public void should_return_free_disk_space()
{ {
var result = Subject.GetAvilableSpace(Directory.GetCurrentDirectory()); var result = Subject.GetAvilableSpace(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
result.Should().BeGreaterThan(0); result.Should().BeGreaterThan(0);
} }

View File

@ -26,6 +26,14 @@ public void Start()
{ {
AppDate = Path.Combine(Directory.GetCurrentDirectory(), "_intg_" + DateTime.Now.Ticks); AppDate = Path.Combine(Directory.GetCurrentDirectory(), "_intg_" + DateTime.Now.Ticks);
var nzbdroneConsoleExe = "NzbDrone.Console.exe";
if (OsInfo.IsMono)
{
nzbdroneConsoleExe = "NzbDrone.exe";
}
if (BuildInfo.IsDebug) if (BuildInfo.IsDebug)
{ {
@ -33,7 +41,7 @@ public void Start()
} }
else else
{ {
Start(Path.Combine("bin","NzbDrone.Console.exe")); Start(Path.Combine("bin", nzbdroneConsoleExe));
} }
while (true) while (true)

View File

@ -1,4 +1,5 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using FluentAssertions; using FluentAssertions;
using Microsoft.AspNet.SignalR.Client; using Microsoft.AspNet.SignalR.Client;
@ -42,7 +43,7 @@ public void should_have_no_root_folder_initially()
var rootFolder = new RootFolderResource var rootFolder = new RootFolderResource
{ {
Path = Directory.GetCurrentDirectory() Path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
}; };
var postResponse = RootFolders.Post(rootFolder); var postResponse = RootFolders.Post(rootFolder);