Skip to content

Commit

Permalink
[RISC-V] Increase timeouts in CacheTests (dotnet#107278)
Browse files Browse the repository at this point in the history
This patch fixes System.Text.Json.Serialization.Tests.CacheTests on Debug build.
  • Loading branch information
yurai007 authored and sirntar committed Sep 30, 2024
1 parent 65fc147 commit d422c7a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ public static void JsonSerializerOptionsUpdateHandler_ClearingDoesntPreventSeria

JsonSerializer.Serialize<SimpleTestClass>(testObj, options);
Assert.NotEqual(0, getCount(options));
}, new RemoteInvokeOptions() {
TimeOut = RemoteExecutor.FailWaitTimeoutMilliseconds * PlatformDetection.SlowRuntimeTimeoutModifier
}).Dispose();

static Func<JsonSerializerOptions, int> CreateCacheCountAccessor()
Expand Down Expand Up @@ -294,6 +296,8 @@ public static void JsonSerializerOptions_ReuseConverterCaches()
Assert.Same(originalCacheOptions, getCacheOptions(options2));
}
}
}, new RemoteInvokeOptions() {
TimeOut = RemoteExecutor.FailWaitTimeoutMilliseconds * PlatformDetection.SlowRuntimeTimeoutModifier
}).Dispose();

static Func<JsonSerializerOptions, JsonSerializerOptions?> CreateCacheOptionsAccessor()
Expand Down

0 comments on commit d422c7a

Please sign in to comment.