Skip to content

Commit 88f9aba

Browse files
authored
[RISC-V] Increase timeouts in CacheTests (#107278)
This patch fixes System.Text.Json.Serialization.Tests.CacheTests on Debug build.
1 parent 5b25f67 commit 88f9aba

File tree

1 file changed

+4
-0
lines changed
  • src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ public static void JsonSerializerOptionsUpdateHandler_ClearingDoesntPreventSeria
239239

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

244246
static Func<JsonSerializerOptions, int> CreateCacheCountAccessor()
@@ -294,6 +296,8 @@ public static void JsonSerializerOptions_ReuseConverterCaches()
294296
Assert.Same(originalCacheOptions, getCacheOptions(options2));
295297
}
296298
}
299+
}, new RemoteInvokeOptions() {
300+
TimeOut = RemoteExecutor.FailWaitTimeoutMilliseconds * PlatformDetection.SlowRuntimeTimeoutModifier
297301
}).Dispose();
298302

299303
static Func<JsonSerializerOptions, JsonSerializerOptions?> CreateCacheOptionsAccessor()

0 commit comments

Comments
 (0)