File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ private async Task RunWorkerBatchAsync(
184184 var pending = new HashSet < string > ( batch ) ;
185185 var running = new HashSet < string > ( ) ;
186186 var attempts = 0 ;
187- const int maxAttempts = 100 ;
187+ const int maxAttempts = 3 ; // Reduced from 100 to fail fast
188188
189189 while ( pending . Count > 0 && attempts < maxAttempts )
190190 {
@@ -293,6 +293,13 @@ private async Task RunWorkerBatchAsync(
293293 break ;
294294 }
295295 }
296+
297+ // After all retries, mark any remaining tests as crashed
298+ foreach ( var fqn in pending )
299+ {
300+ lock ( results ) results . Crashed . Add ( fqn ) ;
301+ display . TestCrashed ( fqn ) ;
302+ }
296303 }
297304
298305 private async Task RunWithRecoveryQuietAsync ( string assemblyPath , List < string > allTests , TestResults results )
You can’t perform that action at this time.
0 commit comments