diff --git a/src/Castle.Core.Tests/Services.Logging.Tests/DiagnosticLogger/DiagnosticsLoggerTestCase.cs b/src/Castle.Core.Tests/Services.Logging.Tests/DiagnosticLogger/DiagnosticsLoggerTestCase.cs index 8f0feb3e4..ec52fa524 100644 --- a/src/Castle.Core.Tests/Services.Logging.Tests/DiagnosticLogger/DiagnosticsLoggerTestCase.cs +++ b/src/Castle.Core.Tests/Services.Logging.Tests/DiagnosticLogger/DiagnosticsLoggerTestCase.cs @@ -64,6 +64,13 @@ private void AssertAdmin() ignore = true; Assert.Ignore("This test case only valid when running as admin"); } + + bool isGitHubActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true"; + if (isGitHubActions) + { + ignore = true; + Assert.Ignore("This test case is flaky on GitHub Actions even when running as admin"); + } } catch (SecurityException) {