Skip to content

Fix flaky test#4342

Merged
RussKie merged 1 commit intodotnet:masterfrom
weltkante:issue4213
Dec 10, 2020
Merged

Fix flaky test#4342
RussKie merged 1 commit intodotnet:masterfrom
weltkante:issue4213

Conversation

@weltkante
Copy link
Copy Markdown
Contributor

@weltkante weltkante commented Dec 9, 2020

Fixes #4213

Proposed changes

Do not perform an exact check on the number of invalidations since the OS may perform additional invalidations. See issue for a detailed analysis of the scenario we are fixing.

Customer Impact

none, test-only

Regression?

no

Risk

none, test-only

Before

Test failed depending on last input, which was indeterministic due to multithreaded tests simulating user input.

After

Test should be stable independent of input generated by other threads

Test methodology

Run the test in the VS debugger and make sure its independent of keyboard/mouse input performed in the debugger

Microsoft Reviewers: Open in CodeFlow

@weltkante weltkante requested a review from a team as a code owner December 9, 2020 10:08
@ghost ghost assigned weltkante Dec 9, 2020
@weltkante

This comment has been minimized.

@RussKie

This comment has been minimized.

@RussKie
Copy link
Copy Markdown
Contributor

RussKie commented Dec 10, 2020

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 10, 2020

Codecov Report

Merging #4342 (6e87f13) into master (43e2945) will decrease coverage by 0.00765%.
The diff coverage is 100.00000%.

@@                 Coverage Diff                 @@
##              master       #4342         +/-   ##
===================================================
- Coverage   97.96404%   97.95639%   -0.00765%     
===================================================
  Files            537         537                 
  Lines         261498      261498                 
  Branches        4815        4815                 
===================================================
- Hits          256174      256154         -20     
- Misses          4452        4468         +16     
- Partials         872         876          +4     
Flag Coverage Δ
Debug 97.95639% <100.00000%> (-0.00765%) ⬇️
test 97.95639% <100.00000%> (-0.00765%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@RussKie RussKie merged commit 9ce7c46 into dotnet:master Dec 10, 2020
@ghost ghost added this to the 6.0 Preview1 milestone Dec 10, 2020
@RussKie
Copy link
Copy Markdown
Contributor

RussKie commented Dec 10, 2020

Thank you

@ghost ghost locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: GroupBox_FlatStyle_VisualStyles_on_SetWithCustomOldValue_GetReturnsExpected with visual styles on

2 participants