diff --git a/src/DiffEngine.Tests/DiffRunnerTests.cs b/src/DiffEngine.Tests/DiffRunnerTests.cs index ed9acacf..f4b4087b 100644 --- a/src/DiffEngine.Tests/DiffRunnerTests.cs +++ b/src/DiffEngine.Tests/DiffRunnerTests.cs @@ -43,11 +43,11 @@ public async Task MaxInstancesToLaunch() { await Task.Delay(500); ProcessCleanup.Refresh(); - var result = await DiffRunner.LaunchAsync(file1, "fake.txt"); + var result = DiffRunner.Launch(file1, "fake.txt"); await Task.Delay(300); await Assert.That(result).IsEqualTo(LaunchResult.StartedNewInstance); ProcessCleanup.Refresh(); - result = await DiffRunner.LaunchAsync(file2, "fake.txt"); + result = DiffRunner.Launch(file2, "fake.txt"); await Assert.That(result).IsEqualTo(LaunchResult.TooManyRunningDiffTools); ProcessCleanup.Refresh(); DiffRunner.Kill(file1, "fake.txt"); @@ -119,7 +119,7 @@ public async Task LaunchAndKillDisabled() await WaitForRunning(false); await Assert.That(IsRunning()).IsFalse(); await Assert.That(ProcessCleanup.IsRunning(command)).IsFalse(); - var result = await DiffRunner.LaunchAsync(file1, file2); + var result = DiffRunner.Launch(file1, file2); await Assert.That(result).IsEqualTo(LaunchResult.Disabled); Thread.Sleep(500); ProcessCleanup.Refresh(); @@ -170,7 +170,7 @@ public async Task LaunchAndKill() await WaitForRunning(false); await Assert.That(IsRunning()).IsFalse(); await Assert.That(ProcessCleanup.IsRunning(command)).IsFalse(); - var result = await DiffRunner.LaunchAsync(file1, file2); + var result = DiffRunner.Launch(file1, file2); await Assert.That(result).IsEqualTo(LaunchResult.StartedNewInstance); await WaitForRunning(true); await Assert.That(IsRunning()).IsTrue();