mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
Fixed several tests and test infrastructure issues
This commit is contained in:
@@ -66,7 +66,7 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void Should_be_able_to_start_process()
|
||||
{
|
||||
var process = Subject.Start(Path.Combine(Directory.GetCurrentDirectory(), DummyApp.DUMMY_PROCCESS_NAME + ".exe"));
|
||||
var process = StartDummyProcess();
|
||||
|
||||
Subject.Exists(DummyApp.DUMMY_PROCCESS_NAME).Should()
|
||||
.BeTrue("excepted one dummy process to be already running");
|
||||
@@ -141,7 +141,8 @@ namespace NzbDrone.Common.Test
|
||||
|
||||
private Process StartDummyProcess()
|
||||
{
|
||||
return Subject.Start(DummyApp.DUMMY_PROCCESS_NAME + ".exe");
|
||||
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, DummyApp.DUMMY_PROCCESS_NAME + ".exe");
|
||||
return Subject.Start(path);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user