File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/RustAnalyzer.TestAdapter.UnitTests/Common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace KS.RustAnalyzer.TestAdapter.UnitTests.Common;
1010
1111public sealed class ProcessExtensionTests
1212{
13- private const int TimeoutSeconds = 30 ;
13+ private const int TimeoutSeconds = 15 ;
1414
1515 [ Fact ]
1616 public void CanFindAliveParentProcessId ( )
1717 {
18- var p1 = Process . Start ( ( "cmd" , $ "/c timeout { TimeoutSeconds } /NOBREAK") . PSI ( ) ) ;
18+ var p1 = Process . Start ( ( "cmd" , $ "/k timeout { TimeoutSeconds } /NOBREAK") . PSI ( ) ) ;
1919
2020 var ppids = "timEOut" . GetProcessesByName ( ) . Select ( p => p . GetParentProcessId ( ) ) ;
2121 p1 . HasExited . Should ( ) . BeFalse ( ) ;
@@ -42,7 +42,7 @@ public async Task CanFindDeadParentProcessIdAsync()
4242 [ Fact ]
4343 public void TestProcessOwnerUser ( )
4444 {
45- var p1 = Process . Start ( ( "cmd" , $ "/c timeout.exe { TimeoutSeconds } /NOBREAK") . PSI ( ) ) ;
45+ var p1 = Process . Start ( ( "cmd" , $ "/k timeout.exe { TimeoutSeconds } /NOBREAK") . PSI ( ) ) ;
4646
4747 p1 . GetProcessOwnerUser ( )
4848 . Should ( ) . Be ( Process . GetCurrentProcess ( ) . GetProcessOwnerUser ( ) ) ;
You can’t perform that action at this time.
0 commit comments