Skip to content

Commit

Permalink
!temporary! Add [Repeat] attributes for all re-enabled tests
Browse files Browse the repository at this point in the history
- double-check none wer skipped for flakiness
  • Loading branch information
dougbu committed Sep 7, 2020
1 parent d8fc4dc commit a95abdb
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using OpenQA.Selenium;
using Xunit;
using Xunit.Abstractions;
Expand All @@ -22,6 +23,7 @@ public WebAssemblyStringComparisonTest(
}

[Fact]
[Repeat]
public void InvariantCultureWorksAsExpected()
{
Navigate(ServerPathBase, noReload: false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Testing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
Expand Down Expand Up @@ -78,6 +79,7 @@ public async Task Index_ReturnsNoCartItems_WhenNoItemsInCart()
}

[Fact]
[Repeat]
public async Task Index_ReturnsCartItems_WhenItemsInCart()
{
// Arrange
Expand Down Expand Up @@ -114,6 +116,7 @@ public async Task Index_ReturnsCartItems_WhenItemsInCart()
}

[Fact]
[Repeat]
public async Task AddToCart_AddsItemToCart()
{
// Arrange
Expand Down Expand Up @@ -156,6 +159,7 @@ public async Task AddToCart_AddsItemToCart()
}

[Fact]
[Repeat]
public async Task RemoveFromCart_RemovesItemFromCart()
{
// Arrange
Expand Down
1 change: 1 addition & 0 deletions src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ public async Task PolymorphicPropertiesOnPageModelsAreBound()
}

[Fact]
[Repeat]
public async Task PolymorphicPropertiesOnPageModelsAreValidated()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing;
using Xunit;

namespace Microsoft.AspNetCore.Mvc.FunctionalTests
{
[Repeat]
public class SystemTextJsonInputFormatterTest : JsonInputFormatterTestBase<FormatterWebSite.StartupWithJsonFormatter>
{
public SystemTextJsonInputFormatterTest(MvcTestFixture<FormatterWebSite.StartupWithJsonFormatter> fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ public async Task ComplexBinder_BindsKeyValuePairProperty_EmptyPrefix_Success()
}

[Fact]
[Repeat]
public async Task ComplexBinder_BindsKeyValuePairProperty_NoCollectionData()
{
// Arrange
Expand Down Expand Up @@ -1902,6 +1903,7 @@ public async Task ComplexBinder_BindsKeyValuePairProperty_NoCollectionData()
}

[Fact]
[Repeat]
public async Task ComplexBinder_BindsKeyValuePairProperty_NoData()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Abstractions;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Testing;
using Xunit;

namespace Microsoft.AspNetCore.Mvc.IntegrationTests
Expand Down Expand Up @@ -312,6 +313,7 @@ public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_EmptyPre
}

[Fact]
[Repeat]
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_NoData()
{
// Arrange
Expand Down Expand Up @@ -477,6 +479,7 @@ public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_EmptyPr
}

[Fact]
[Repeat]
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_NoData()
{
// Arrange
Expand Down
1 change: 1 addition & 0 deletions src/ProjectTemplates/test/EmptyWebTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public async Task EmptyWebTemplateCSharp()

[ConditionalFact]
[SkipOnHelix("Cert failures", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
[Repeat]
public async Task EmptyWebTemplateFSharp()
{
await EmtpyTemplateCore("F#");
Expand Down
1 change: 1 addition & 0 deletions src/ProjectTemplates/test/MvcTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public MvcTemplateTest(ProjectFactoryFixture projectFactory, ITestOutputHelper o

[ConditionalFact]
[SkipOnHelix("cert failure", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
[Repeat]
public async Task MvcTemplate_NoAuthFSharp() => await MvcTemplateCore(languageOverride: "F#");

[ConditionalFact]
Expand Down
1 change: 1 addition & 0 deletions src/ProjectTemplates/test/WebApiTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public WebApiTemplateTest(ProjectFactoryFixture factoryFixture, ITestOutputHelpe

[ConditionalFact]
[SkipOnHelix("Cert failures", Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open")]
[Repeat]
public Task WebApiTemplateFSharp() => WebApiTemplateCore(languageOverride: "F#");

[ConditionalFact]
Expand Down
2 changes: 2 additions & 0 deletions src/ProjectTemplates/test/WorkerTemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing;
using Templates.Test.Helpers;
using Xunit;
using Xunit.Abstractions;
Expand All @@ -23,6 +24,7 @@ public WorkerTemplateTest(ProjectFactoryFixture projectFactory, ITestOutputHelpe
[Theory]
[InlineData("C#")]
[InlineData("F#")]
[Repeat]
public async Task WorkerTemplateAsync(string language)
{
Project = await ProjectFactory.GetOrCreateProject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuild
[ConditionalFact]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[InitializeTestProject("AppWithP2PReference", additionalProjects: "ClassLibrary")]
[Repeat]
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDesktopMsbuild()
=> Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute(MSBuildProcessKind.Desktop);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.AspNetCore.Testing;
using Xunit;

namespace AuthSamples.FunctionalTests
Expand All @@ -30,6 +31,7 @@ public async Task DefaultReturns200()
}

[Fact]
[Repeat]
public async Task MyClaimsRedirectsToLoginPageWhenNotLoggedIn()
{
// Arrange & Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public async Task AppOfflineDroppedWhileSiteFailedToStartInShim_AppOfflineServed
}

[ConditionalFact]
[Repeat]
public async Task AppOfflineDroppedWhileSiteFailedToStartInRequestHandler_SiteStops_InProcess()
{
var deploymentResult = await DeployApp(HostingModel.InProcess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ await connection.Send(
}

[ConditionalFact]
[Repeat]
public async Task ClientDisconnectCallbackStress()
{
// Fixture initialization fails if inside of the Task.Run, so send an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private void InitializeArgs()
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win81, SkipReason = "Missing Windows ALPN support: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation#Support")]
[InlineData("", "Interop HTTP/2 GET")]
[InlineData("?TestMethod=POST", "Interop HTTP/2 POST")]
[Repeat]
public async Task Http2(string requestSuffix, string expectedResponse)
{
InitializeArgs();
Expand Down

0 comments on commit a95abdb

Please sign in to comment.