-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Use IServiceScopeFactory instead of IHybridServiceScopeFactory for event bus caused the unit test to fail. #1426
Comments
I will check it. Thanks @maliming |
I don't think this is related to IHybridServiceScopeFactory change, because it is just a plain wrapper for the IServiceScopeFactory for non-web apps. I can be related to my refactor to reduce singletons. This is the point before this commit: https://github.com/abpframework/abp/tree/63baeaa874b222bf61c19518bb681bff751f39e7 Can you create a temporary branch (like this:) Then test if it still fails. If it does not fail, do it also for the commit https://github.com/abpframework/abp/tree/f719bda32f9b0469684d02e045d87eeabd2a833c This will take your time, but no easy way to understand it, because using IServiceScopeFactory instead of IHybridServiceScopeFactory is a true decision :) |
f719bda#diff-3ca0b926da002b08040470e8c850a714L13 If the life cycle of LocalDistributedEventBus is SIingleton(ISingletonDependency) then there will be no problem. |
3b2dae6#diff-54cb9e5a1eb37d585e4ceac47cc21a00L7 UnitOfWorkManager seems to have the same problem. |
Fixed it. Thank you for finding this.
Did you find any problem (a failing test or another one) about this? |
OK, I fixed both. Thanks for finding these. |
This change(f719bda) caused the unit test to fail.
abp/modules/identity/test/Volo.Abp.Identity.Application.Tests/Volo/Abp/Identity/IdentityUserAppService_Tests.cs
Line 56 in c4ced2d
The text was updated successfully, but these errors were encountered: