fixing Linux integration tests

pull/3113/head
Keivan Beigi 11 years ago
parent 9370edb48c
commit 75371c4e72

@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common;
@ -13,7 +14,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
[Test]
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);
}

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

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

Loading…
Cancel
Save