From 632d7f1e0dd74d2906812990a747366465cd90c7 Mon Sep 17 00:00:00 2001 From: Damian Hickey Date: Sun, 14 May 2023 14:58:42 +0200 Subject: [PATCH] Clean up --- .../tests/LittleForker.Tests/ProcessSupervisorTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/little-forker/tests/LittleForker.Tests/ProcessSupervisorTests.cs b/libs/little-forker/tests/LittleForker.Tests/ProcessSupervisorTests.cs index 0d915b9f..2d5e01ff 100644 --- a/libs/little-forker/tests/LittleForker.Tests/ProcessSupervisorTests.cs +++ b/libs/little-forker/tests/LittleForker.Tests/ProcessSupervisorTests.cs @@ -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); @@ -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]