[wasm] Disable test on browser (#38613)
authorVlad Brezae <brezaevlad@gmail.com>
Tue, 30 Jun 2020 11:21:07 +0000 (14:21 +0300)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 11:21:07 +0000 (13:21 +0200)
It OOMs due to excessive allocations

src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs

index a038c12..b6d2e4b 100644 (file)
@@ -37,7 +37,12 @@ namespace System.Numerics.Tests
             // Random cases
             VerifyLoopGetBitLength(random, true);
             VerifyLoopGetBitLength(random, false);
+        }
 
+        [Fact]
+        [PlatformSpecific(~TestPlatforms.Browser)] // OOM on browser due to large array allocations
+        public static void RunGetBitLengthTestsLarge()
+        {
             // Very large cases
             VerifyGetBitLength(BigInteger.One << 32 << int.MaxValue, int.MaxValue + 32L + 1, 1);
             VerifyGetBitLength(BigInteger.One << 64 << int.MaxValue, int.MaxValue + 64L + 1, 1);