File tree 1 file changed +3
-2
lines changed
test/Azure.Functions.Cli.Tests/ExtensionsTests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ namespace Azure.Functions.Cli.Tests.ExtensionsTests
9
9
{
10
10
public class ProcessExtensionsTests
11
11
{
12
+ private volatile bool calledContinueWith = false ;
13
+
12
14
[ SkippableFact ]
13
15
public async Task WaitForExitTest ( )
14
16
{
@@ -18,15 +20,14 @@ public async Task WaitForExitTest()
18
20
Process process = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
19
21
? Process . Start ( "cmd" )
20
22
: Process . Start ( "sh" ) ;
21
- var calledContinueWith = false ;
22
23
23
24
process . WaitForExitAsync ( ) . ContinueWith ( _ =>
24
25
{
25
26
calledContinueWith = true ;
26
27
} ) . Ignore ( ) ;
27
28
28
29
process . Kill ( ) ;
29
- for ( var i = 0 ; ! calledContinueWith && i < 5 ; i ++ )
30
+ for ( var i = 0 ; ! calledContinueWith && i < 10 ; i ++ )
30
31
{
31
32
await Task . Delay ( 200 ) ;
32
33
}
You can’t perform that action at this time.
0 commit comments