Skip to content

Commit ed53f55

Browse files
authored
[browser] avoid OOM in RentingGiganticArraySucceedsOrOOMs (#105246)
1 parent 4d49539 commit ed53f55

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Runtime/tests/System.Buffers.Tests/ArrayPool

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime/tests/System.Buffers.Tests/ArrayPool/UnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static void RentingWithInvalidLengthThrows(ArrayPool<byte> pool)
8282
AssertExtensions.Throws<ArgumentOutOfRangeException>("minimumLength", () => pool.Rent(-1));
8383
}
8484

85-
[Fact]
85+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
8686
public static void RentingGiganticArraySucceedsOrOOMs()
8787
{
8888
try

0 commit comments

Comments
 (0)