From 2768fce0a4432c17fa6191c6b704ce19470f660c Mon Sep 17 00:00:00 2001 From: ta264 Date: Tue, 9 Jul 2019 21:46:10 +0100 Subject: [PATCH] Fixed: Failing Process provider test --- src/NzbDrone.Common.Test/ProcessProviderTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common.Test/ProcessProviderTests.cs b/src/NzbDrone.Common.Test/ProcessProviderTests.cs index 205037562..c62185170 100644 --- a/src/NzbDrone.Common.Test/ProcessProviderTests.cs +++ b/src/NzbDrone.Common.Test/ProcessProviderTests.cs @@ -66,10 +66,10 @@ 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"); + .BeTrue("expected one dummy process to be already running"); process.Kill(); process.WaitForExit(); @@ -92,7 +92,7 @@ namespace NzbDrone.Common.Test private Process StartDummyProcess() { - return Subject.Start(DummyApp.DUMMY_PROCCESS_NAME + ".exe"); + return Subject.Start(Path.Combine(TestContext.CurrentContext.TestDirectory, DummyApp.DUMMY_PROCCESS_NAME + ".exe")); } [Test]