Skip to content

Commit

Permalink
Tests - Wpf/WaitForRenderIdleTests lower expected time
Browse files Browse the repository at this point in the history
 - Page is now rendered quicker than before.
  • Loading branch information
amaitland committed Oct 7, 2023
1 parent d4d9777 commit d01fa74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CefSharp.Test/Wpf/WaitForRenderIdleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit d01fa74

Please sign in to comment.