From c81b0e537fbf05dd0851610cd48f0fd0fc5fcaf4 Mon Sep 17 00:00:00 2001 From: agracio Date: Wed, 12 Nov 2025 15:40:04 +0000 Subject: [PATCH] increasing test timeout times --- .../Tests/WebContentsTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs index 62920d3..f2a13ec 100644 --- a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs +++ b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs @@ -12,7 +12,7 @@ namespace ElectronNET.IntegrationTests.Tests this.fx = fx; } - [Fact(Timeout = 5000)] + [Fact(Timeout = 15000)] public async Task Can_get_url_after_navigation() { var wc = this.fx.MainWindow.WebContents; @@ -21,7 +21,7 @@ namespace ElectronNET.IntegrationTests.Tests url.Should().Contain("example.com"); } - [Fact(Timeout = 5000)] + [Fact(Timeout = 15000)] public async Task ExecuteJavaScript_returns_title() { var wc = this.fx.MainWindow.WebContents; @@ -30,7 +30,7 @@ namespace ElectronNET.IntegrationTests.Tests title.Should().NotBeNull(); } - [Fact(Timeout = 5000)] + [Fact(Timeout = 15000)] public async Task DomReady_event_fires() { var wc = this.fx.MainWindow.WebContents; @@ -41,7 +41,7 @@ namespace ElectronNET.IntegrationTests.Tests fired.Should().BeTrue(); } - [Fact(Timeout = 5000)] + [Fact(Timeout = 15000)] public async Task Can_print_to_pdf() { var html = "data:text/html,

PDF Test

Electron.NET

"; @@ -63,7 +63,7 @@ namespace ElectronNET.IntegrationTests.Tests } } - [Fact(Timeout = 5000)] + [Fact(Timeout = 15000)] public async Task Can_basic_print() { var html = "data:text/html,

Print Test

"; @@ -72,7 +72,7 @@ namespace ElectronNET.IntegrationTests.Tests ok.Should().BeTrue(); } - [SkippableFact(Timeout = 5000)] + [SkippableFact(Timeout = 15000)] public async Task GetPrintersAsync_check() { Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null, "Skipping printer test in CI environment.");