From e8c5de63c941dda9a4b9f017c8c15c6d0003cd4f Mon Sep 17 00:00:00 2001 From: agracio Date: Wed, 12 Nov 2025 15:32:17 +0000 Subject: [PATCH] reverting Linux CI changes, skipping printer test in CI --- .github/workflows/ci.yml | 7 ------- src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa74a5f..7460832 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,13 +22,6 @@ jobs: 8.0.x 10.0.x - - name: Setup virtual environment - run: | - export DISPLAY=:99 - echo "DISPLAY=:99" >> $GITHUB_ENV - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - sleep 30 - - name: Build run: ./build.sh diff --git a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs index 355acd5..62920d3 100644 --- a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs +++ b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs @@ -72,9 +72,10 @@ namespace ElectronNET.IntegrationTests.Tests ok.Should().BeTrue(); } - [Fact(Timeout = 5000)] + [SkippableFact(Timeout = 5000)] public async Task GetPrintersAsync_check() { + Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null, "Skipping printer test in CI environment."); var info = await fx.MainWindow.WebContents.GetPrintersAsync(); info.Should().NotBeNull(); }