Skip to content

Commit ae41575

Browse files
committed
Merge branch 'master' into dev/7.0.0
2 parents 5767037 + f4b87e1 commit ae41575

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

UnitTests/UnitTests.HighPerformance.Shared/Extensions/Test_ReadOnlySpanExtensions.Count.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)