Fix ExitDetectionNotBlockedByHandler test (#64407)
authorStephen Toub <stoub@microsoft.com>
Fri, 28 Jan 2022 00:25:02 +0000 (19:25 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Jan 2022 00:25:02 +0000 (19:25 -0500)
src/libraries/System.Console/tests/CancelKeyPress.Unix.cs

index 8fd9510..2a8bc01 100644 (file)
@@ -76,8 +76,9 @@ public partial class CancelKeyPressTests
                 Assert.Equal(RemoteExecutor.SuccessExitCode, handle.ExitCode);
             }
 
-            // Release CancelKeyPress
+            // Release CancelKeyPress, and give it time to return and tear down the app
             mre.Set();
+            Thread.Sleep(WaitFailTestTimeoutSeconds * 1000);
         }, new RemoteInvokeOptions() { ExpectedExitCode = 130 }).Dispose();
     }