@@ -541,7 +541,7 @@ public static void TestIndexOfAny_RandomInputs_Nls()
541541
542542 [ Fact ]
543543 [ SkipOnPlatform ( TestPlatforms . LinuxBionic , "Remote executor has problems with exit codes" ) ]
544- // [ActiveIssue("Manual execution only. Worth running any time SearchValues<string> logic is modified.")]
544+ [ ActiveIssue ( "Manual execution only. Worth running any time SearchValues<string> logic is modified." ) ]
545545 public static void TestIndexOfAny_RandomInputs_Stress ( )
546546 {
547547 RunStress ( ) ;
@@ -572,7 +572,7 @@ public static void TestIndexOfAny_RandomInputs_Stress()
572572
573573 static void RunStress ( )
574574 {
575- foreach ( int maxNeedleCount in new [ ] { 1 } )
575+ foreach ( int maxNeedleCount in new [ ] { 2 , 8 , 20 , 100 } )
576576 {
577577 foreach ( int maxNeedleValueLength in new [ ] { 8 , 40 } )
578578 {
@@ -589,7 +589,7 @@ static void RunStress()
589589 HaystackIterationsPerNeedle = 1_000 ,
590590 } ;
591591
592- helper . StressRandomInputs ( TimeSpan . FromSeconds ( 20 ) ) ;
592+ helper . StressRandomInputs ( TimeSpan . FromSeconds ( 5 ) ) ;
593593 }
594594 }
595595 }
@@ -689,7 +689,7 @@ public void StressRandomInputs(TimeSpan duration)
689689 ExceptionDispatchInfo ? exception = null ;
690690 Stopwatch s = Stopwatch . StartNew ( ) ;
691691
692- Parallel . For ( 0 , Environment . ProcessorCount , _ =>
692+ Parallel . For ( 0 , Environment . ProcessorCount - 1 , _ =>
693693 {
694694 while ( s . Elapsed < duration && Volatile . Read ( ref exception ) is null )
695695 {
0 commit comments