Skip to content

Commit

Permalink
Add Skip attribute or adjust skip condition for flaky tests
Browse files Browse the repository at this point in the history
These tests sometimes fail in CI and block deployment.
Related issues: dotnet#6610, dotnet#6714, dotnet#6739, dotnet#6926
  • Loading branch information
ddrobotov committed Apr 8, 2022
1 parent b4d21a5 commit 7f50efb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ await InputSimulator.SendAsync(
});
}

[WinFormsFact]
[ActiveIssue("https://github.com/dotnet/winforms/issues/6714")]
[WinFormsFact(Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6714")]
public async Task Button_AchorNone_NoResizeOnWindowSizeTallerAsync()
{
await RunTestAsync(async (form, button) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,8 @@ public static IEnumerable<object[]> RowHeadersWidth_SetWithHandle_TestData()
}
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/6597")]
[ConditionalWinFormsTheory(UnsupportedArchitecture = Architecture.Arm64,
Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6597")]
[ActiveIssue("https://github.com/dotnet/winforms/issues/6739")]
[WinFormsTheory(Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6739")]
[MemberData(nameof(RowHeadersWidth_SetWithHandle_TestData))]
public void DataGridView_RowHeadersWidth_SetWithHandle_GetReturnsExpected(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode, bool rowHeadersVisible, bool autoSize, int value, int expectedValue, int expectedInvalidatedCallCount)
{
Expand Down Expand Up @@ -1968,9 +1967,8 @@ public void DataGridView_OnColumnHeadersHeightChanged_Invoke_CallsColumnHeadersH
Assert.False(control.IsHandleCreated);
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/6597")]
[ConditionalWinFormsTheory(UnsupportedArchitecture = Architecture.Arm64,
Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6597")]
[ActiveIssue("https://github.com/dotnet/winforms/issues/6926")]
[WinFormsTheory(Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6926")]
[MemberData(nameof(OnColumnHeadersHeightChanged_TestData))]
public void DataGridView_OnColumnHeadersHeightChanged_InvokeWithHandle_CallsColumnHeadersHeightChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode, bool columnHeadersVisible, EventArgs eventArgs)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7121,8 +7121,7 @@ public void ToolStrip_WndProc_InvokeMouseActivate_Success()
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/6610")]
[ConditionalWinFormsFact(UnsupportedArchitecture = Architecture.Arm64,
Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6610")]
[WinFormsFact(Skip = "Flaky tests, see: https://github.com/dotnet/winforms/issues/6610")]
public void ToolStrip_WndProc_InvokeMouseActivateWithHandle_Success()
{
using var control = new SubToolStrip();
Expand Down

0 comments on commit 7f50efb

Please sign in to comment.