Disable timing out test on mono (#66381)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Thu, 10 Mar 2022 18:40:14 +0000 (18:40 +0000)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 18:40:14 +0000 (18:40 +0000)
* disable timing out test on mono

* Update src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.cs

src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/JsonSerializerContextTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CacheTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.cs

index bbba444..0576274 100644 (file)
@@ -24,7 +24,7 @@ namespace System.Text.Json.SourceGeneration.Tests
         public static void Converters_AndTypeInfoCreator_NotRooted_WhenMetadataNotPresent()
         {
             RemoteExecutor.Invoke(
-                () =>
+                static () =>
                 {
                     object[] objArr = new object[] { new MyStruct() };
 
index 37daa9b..c16738c 100644 (file)
@@ -218,7 +218,7 @@ namespace System.Text.Json.Serialization.Tests
             //
             // If either of them changes, this test will need to be kept in sync.
 
-            RemoteExecutor.Invoke(() =>
+            RemoteExecutor.Invoke(static () =>
                 {
                     var options = new JsonSerializerOptions();
 
index 0ec72a2..e7055c2 100644 (file)
@@ -180,10 +180,11 @@ namespace System.Text.Json.Serialization.Tests
         }
 
         [ActiveIssue("https://github.com/dotnet/runtime/issues/66232", TargetFrameworkMonikers.NetFramework)]
+        [ActiveIssue("https://github.com/dotnet/runtime/issues/66371", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoInterpreter))] 
         [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
         public static void GetConverter_Poco_WriteThrowsNotSupportedException()
         {
-            RemoteExecutor.Invoke(() =>
+            RemoteExecutor.Invoke(static () =>
             {
                 JsonSerializerOptions options = new();
                 JsonConverter<Point_2D> converter = (JsonConverter<Point_2D>)options.GetConverter(typeof(Point_2D));