-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix UserStoreTest
#64019
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 UserStoreTest
#64019
Conversation
Worked once, but this is a flaky test. Re-running to validate that this is really fixed. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Is it flaky locally? Try adding |
I haven't been able to reproduce the failure consistently locally, even with "Run until failure". I think I've only seen it fail locally one time. |
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 the UserStoreTest
class by introducing a dedicated test-specific DbContext
class to replace direct usage of the generic IdentityDbContext
. The changes ensure proper type safety and consistency throughout the test suite.
- Introduces
UserStoreTestDbContext
as a dedicated test context class - Replaces all
IdentityDbContext
references with the newUserStoreTestDbContext
- Updates method signatures and generic type parameters consistently
I believe the culprit was that EF Core caches compiled models per |
@ilonatommy this PR is ready. Just needs an approval. |
No description provided.