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' ||