Skip to content

Commit

Permalink
[RISC-V] Increase timeouts in CacheTests
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 committed Sep 3, 2024
1 parent f402418 commit aab7117
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 aab7117

Please sign in to comment.