From ec555903bb858736f09a5317e5d42bb8ce058c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20P=C3=B6lz?= <38893694+Flash0ver@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:26:28 +0200 Subject: [PATCH] test: disabled win-x64 test on win-arm64 too --- .../SamplingTransactionProfilerTests.cs | 2 +- test/Sentry.Testing/TestEnvironment.cs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs b/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs index 468ff45a62..f51986b4a0 100644 --- a/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs +++ b/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs @@ -119,7 +119,7 @@ public void Profiler_WithZeroStartupTimeout_CapturesAfterStartingAsynchronously( { if (TestEnvironment.IsGitHubActions) { - Skip.If(TestEnvironment.IsWinX64, "Flaky in CI on Windows X64."); + Skip.If(RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Flaky in CI on Windows."); Skip.If(RuntimeInformation.IsOSPlatform(OSPlatform.Linux), "Flaky in CI on Linux."); } diff --git a/test/Sentry.Testing/TestEnvironment.cs b/test/Sentry.Testing/TestEnvironment.cs index 1c2763b439..e70c571fd8 100644 --- a/test/Sentry.Testing/TestEnvironment.cs +++ b/test/Sentry.Testing/TestEnvironment.cs @@ -1,5 +1,3 @@ -using System; - namespace Sentry.Testing; public static class TestEnvironment @@ -15,7 +13,4 @@ public static bool IsGitHubActions return isGitHubActions?.Equals("true", StringComparison.OrdinalIgnoreCase) == true; } } - - public static bool IsWinX64 => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) - && RuntimeInformation.OSArchitecture == Architecture.X64; }