-
Notifications
You must be signed in to change notification settings - Fork 46
Reset flights between tests, Fixes AB#3413737 #2794
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
Conversation
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
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.
Pull Request Overview
This PR fixes a test isolation issue where flight settings were persisting between test cases, causing testUrlOverrideHandlesNonceRedirectUrl to fail. The fix ensures proper test cleanup by resetting the flights manager after test execution.
- Added flight manager reset call to prevent state leakage between tests
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClientTest.java
Outdated
Show resolved
Hide resolved
|
✅ Work item link check complete. Description contains link AB#3413737 to an Azure Boards work item. |
|
❌ Work item link check failed. Description contains AB#3413737 Click here to learn more. |
mohitc1
left a comment
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.
![]()
The testcase testUrlOverrideHandlesNonceRedirectUrl was failing because there was a new testcase introduced in the class where we were setting flights but we missed resetting them before the next testcase runs.
Fix : Resetting flights between the UTs
Additional fix : There was a change that was relying on the state of flights set in previous tests which was incorrect. Correcting this as well.
Fixes AB#3413737