diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs index f2f0e67c75..707dd4f511 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs @@ -9,7 +9,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; using Microsoft.AspNetCore.Testing; -using Xunit; +using Microsoft.AspNetCore.Testing.xunit; namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests { @@ -19,7 +19,10 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests private static readonly TimeSpan LongDelay = TimeSpan.FromSeconds(30); private static readonly TimeSpan ShortDelay = TimeSpan.FromSeconds(LongDelay.TotalSeconds / 10); - [Fact] + // This test is particularly flaky on some teamcity agents, so skip there for now. + // https://github.com/aspnet/KestrelHttpServer/issues/1684 + [ConditionalFact] + [EnvironmentVariableSkipCondition("TEAMCITY_VERSION", null)] public Task TestKeepAliveTimeout() { // Delays in these tests cannot be much longer than expected. diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/LoggingConnectionAdapterTests.cs b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/LoggingConnectionAdapterTests.cs index 976969d8ac..39c77b3cdd 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/LoggingConnectionAdapterTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/LoggingConnectionAdapterTests.cs @@ -8,13 +8,17 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Testing; +using Microsoft.AspNetCore.Testing.xunit; using Xunit; namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests { public class LoggingConnectionAdapterTests { - [Fact] + // This test is particularly flaky on some teamcity agents, so skip there for now. + // https://github.com/aspnet/KestrelHttpServer/issues/1697 + [ConditionalFact] + [EnvironmentVariableSkipCondition("TEAMCITY_VERSION", null)] public async Task LoggingConnectionAdapterCanBeAddedBeforeAndAfterHttpsAdapter() { var host = new WebHostBuilder()