From d01fa74bf2bf3d04602e44756a7b1e1f5716a9a2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 7 Oct 2023 15:43:50 +1000 Subject: [PATCH] Tests - Wpf/WaitForRenderIdleTests lower expected time - Page is now rendered quicker than before. --- CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 8ba04724c7..96c20809cb 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -27,8 +27,6 @@ public WaitForRenderIdleTests(ITestOutputHelper output, CefSharpFixture fixture) [WpfFact] public async Task ShouldWork() { - const int expected = 500; - using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) { var start = DateTime.Now; @@ -39,7 +37,7 @@ public async Task ShouldWork() var time = (end - start).TotalMilliseconds; Assert.True(end > start); - Assert.True(time > expected, $"Executed in {time}ms"); + Assert.True(time > 400, $"Executed in {time}ms"); output.WriteLine("Time {0}ms", time);