Skip to content

Commit 632d7f1

Browse files
committed
Clean up
1 parent 1f1fed5 commit 632d7f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/little-forker/tests/LittleForker.Tests/ProcessSupervisorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public async Task Given_short_running_exe_then_should_run_to_exit()
5555
Constants.DotNet,
5656
Constants.SelfTerminatingProcessPath,
5757
envVars);
58-
supervisor.OutputDataReceived += data => _outputHelper.WriteLine2(data);
58+
supervisor.OutputDataReceived += _outputHelper.WriteLine2;
5959
var whenStateIsExited = supervisor.WhenStateIs(ProcessSupervisor.State.ExitedSuccessfully);
6060
var whenStateIsExitedWithError = supervisor.WhenStateIs(ProcessSupervisor.State.ExitedWithError);
6161

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

150-
_outputHelper.WriteLine($"Exit code {supervisor.ProcessInfo.ExitCode}");
150+
_outputHelper.WriteLine($"Exit code {supervisor.ProcessInfo!.ExitCode}");
151151
}
152152

153153
[Fact]

0 commit comments

Comments
 (0)