File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
UnitTests/UnitTests.HighPerformance.Shared/Extensions Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,12 @@ public void Test_ReadOnlySpanExtensions_RandomCountManaged()
6262 {
6363 var value = new Int ( 37438941 ) ;
6464
65- foreach ( var count in TestCounts )
65+ // We can skip the most expensive test in this case, as we're not testing
66+ // a SIMD enabled path. The last test requires a very high memory usage which
67+ // sometimes causes the CI test runner to fail with an out of memory exception.
68+ // Since we don't need to double check overflows in the managed case, which is
69+ // just a classic linear loop with some optimizations, omitting this case is fine.
70+ foreach ( var count in TestCounts . Slice ( 0 , TestCounts . Length - 1 ) )
6671 {
6772 var random = new Random ( count ) ;
6873
You can’t perform that action at this time.
0 commit comments