mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -17,7 +17,6 @@ namespace NzbDrone.Common.Test
|
||||
[TestFixture]
|
||||
public class ProcessProviderFixture : TestBase<ProcessProvider>
|
||||
{
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
@@ -43,7 +42,6 @@ namespace NzbDrone.Common.Test
|
||||
{
|
||||
TestLogger.Warn(ex, "{0} when killing process", ex.Message);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -85,7 +83,7 @@ namespace NzbDrone.Common.Test
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Platform(Exclude="MacOsX")]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
[Retry(3)]
|
||||
public void exists_should_find_running_process()
|
||||
{
|
||||
@@ -153,7 +151,7 @@ namespace NzbDrone.Common.Test
|
||||
|
||||
[Test]
|
||||
[Retry(3)]
|
||||
[Platform(Exclude="MacOsX")]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public void kill_all_should_kill_all_process_with_name()
|
||||
{
|
||||
var dummy1 = StartDummyProcess();
|
||||
@@ -182,12 +180,13 @@ namespace NzbDrone.Common.Test
|
||||
}
|
||||
|
||||
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, DummyApp.DUMMY_PROCCESS_NAME + suffix);
|
||||
var process = Subject.Start(path, onOutputDataReceived: (string data) => {
|
||||
if (data.StartsWith("Dummy process. ID:"))
|
||||
{
|
||||
processStarted.Set();
|
||||
}
|
||||
});
|
||||
var process = Subject.Start(path, onOutputDataReceived: (string data) =>
|
||||
{
|
||||
if (data.StartsWith("Dummy process. ID:"))
|
||||
{
|
||||
processStarted.Set();
|
||||
}
|
||||
});
|
||||
|
||||
if (!processStarted.Wait(5000))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user