Skip to content

Commit

Permalink
Fixed random test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Dec 28, 2024
1 parent 817e0e0 commit bc96d79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DotNext.Tests/SpanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ public static void CheckMask()
public static void CheckLargeMask()
{
var value = RandomBytes(1024);
if (value[0] is byte.MaxValue)
value[0] = byte.MaxValue - 1;

var mask = value.AsSpan().ToArray();
mask.AsSpan(0, 512).Clear();

Expand Down

0 comments on commit bc96d79

Please sign in to comment.