New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix flaky behaviour [ Test load tab state] #4454
Conversation
AwsToolkitExplorerToolWindow.DEVTOOLS_TAB_ID | ||
} | ||
) | ||
assertThat(sut.state.selectedTab).isEqualTo(AwsToolkitExplorerToolWindow.Q_TAB_ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this test change now that user can dismiss the Q tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this we are just testing whether Q_TAB is selected or not. Actually this test passes but sometimes fails on CI and local. So, running this test in runInEdtAndGet {}
block. To avoid flakiness.
Should this test change now that user can dismiss the Q tab?
I think this is an another test case, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
per discussion with Ankit, leave default to be Q_TAB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default tab selected should be Q_TAB, checked with @ankit-sharma90
/retryBuilds |
Quality Gate passedIssues Measures |
Types of changes
Description
The test is failing because the loadState is being called out of runInEdt. When runInEdt is added, thread safety is enforced and the test passes.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.