From 3281c25089bc33000bec8e0629d2a9759b492271 Mon Sep 17 00:00:00 2001 From: Jhin Lee Date: Mon, 7 Sep 2026 05:33:06 -0400 Subject: [PATCH] test: exit legacy discovery fixture explicitly --- test/client/fixtures/stdio_restart_server.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/client/fixtures/stdio_restart_server.dart b/test/client/fixtures/stdio_restart_server.dart index e21a49f8..774dc9da 100644 --- a/test/client/fixtures/stdio_restart_server.dart +++ b/test/client/fixtures/stdio_restart_server.dart @@ -82,7 +82,9 @@ Future main(List arguments) async { if (method == 'server/discover') { if (replayBehavior == 'legacy-exit-on-discover') { - return; + // Exiting the async stdin loop can wait for input cancellation on + // Windows. This fixture must terminate the child before fallback. + exit(0); } final exercisesModernDiscoveryRecovery = launchCount == 1 && (replayBehavior == 'modern-discovery-error-exit' ||