Skip to content

Commit 535b16d

Browse files
authored
simplify event reader cleanup and remove unused include (#41667)
1 parent 5ff49d2 commit 535b16d

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/windows/wslcsession/WSLCSession.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Module Name:
3030
#include <list>
3131
#include <optional>
3232
#include <unordered_map>
33-
#include <unordered_set>
3433

3534
namespace wsl::windows::service::wslc {
3635

‎test/windows/wslc/e2e/WSLCE2EEventsTests.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,9 @@ class WSLCE2EEventsTests
222222
const auto destroyEvent = expectedEvent(L"destroy");
223223
WaitForPseudoConsoleOutput(events, wsl::shared::string::WideToMultiByte(destroyEvent));
224224

225-
events.SendCtrlBreak();
225+
stopReader.reset();
226226
VERIFY_ARE_EQUAL(0, events.Wait());
227227
events.VerifyNoErrors();
228-
stopReader.release();
229228

230229
const WSLCExecutionResult output{.Stdout = wsl::shared::string::MultiByteToWide(events.GetStdoutData())};
231230
const auto lines = output.GetStdoutLines();

0 commit comments

Comments
 (0)