Skip to content

Commit

Permalink
Add Skip attribute or adjust skip condition for flaky tests (#6991)
Browse files Browse the repository at this point in the history
These tests sometimes fail in CI and block deployment.
Related issues: #6610, #6714, #6739, #6926
  • Loading branch information
dmitrii-drobotov authored Apr 8, 2022
1 parent 6a38671 commit c402e2a
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 c402e2a

Please sign in to comment.