Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed May 14, 2023
1 parent fca7bbd commit 64ec5e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task Given_short_running_exe_then_should_run_to_exit()
Constants.DotNet,
Constants.SelfTerminatingProcessPath,
envVars);
supervisor.OutputDataReceived += data => _outputHelper.WriteLine2(data);
supervisor.OutputDataReceived += _outputHelper.WriteLine2;
var whenStateIsExited = supervisor.WhenStateIs(ProcessSupervisor.State.ExitedSuccessfully);
var whenStateIsExitedWithError = supervisor.WhenStateIs(ProcessSupervisor.State.ExitedWithError);

Expand Down Expand Up @@ -147,7 +147,7 @@ public async Task When_stop_a_non_terminating_process_without_a_timeout_then_sho
await supervisor.Stop(); // No timeout so will just kill the process
await stateIsStopped.TimeoutAfter(TimeSpan.FromSeconds(2));

_outputHelper.WriteLine($"Exit code {supervisor.ProcessInfo.ExitCode}");
_outputHelper.WriteLine($"Exit code {supervisor.ProcessInfo!.ExitCode}");
}

[Fact]
Expand Down

0 comments on commit 64ec5e5

Please sign in to comment.