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()
62
62
{
63
63
var value = new Int ( 37438941 ) ;
64
64
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 ) )
66
71
{
67
72
var random = new Random ( count ) ;
68
73
You can’t perform that action at this time.
0 commit comments