Open Closed

All Automated tests fail after update from 5.2.1 to 5.3.4 (AggregateException) #3738


User avatar
0
jarrad78 created

Good Afternoon, I am facing an issue with my project that uses a Customized login method.

I have implemented a customized login flow using the solution provided in https://github.com/abpframework/abp-samples/tree/master/SignInWithoutSpecifyingTenant. In our solution, we have enabled Chat Module and CMSKit Module.

Everything was working great until updating the framework to v. 5.3.4, after updating the framework to the new version, we faced issue as seen in support ticket #3689. But there is also one other issue that has arisen since update to 5.3.4 which seems to be related to 3689. All of our automated tests now fail although business logic itself is the same.

When we attempt to execute automated tests, an AggregateException error is thrown. I have created a private repo so please let me know whom to add so you can access to have a look. We applied patch suggested in ticket #3689 and original login issue was solved but test failure is still an issue.

  • ABP Framework version: v5.3.4

  • UI type: MVC

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace: ` ShopLogic.Samples.SampleAppServiceTests.Initial_Data_Should_Contain_Admin_User Source: SampleAppServiceTests.cs line 23 Duration: 1 ms

    Message:  Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module ShopLogic.ShopLogicTestBaseModule, ShopLogic.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: More than one error has occurred while triggering the event: Volo.Abp.Domain.Entities.Events.Distributed.EntityUpdatedEto1[Volo.Abp.Users.UserEto] (SqliteConnection does not support nested transactions.) (SqliteConnection does not support nested transactions.). See the inner exception for details. ---- System.AggregateException : More than one error has occurred while triggering the event: Volo.Abp.Domain.Entities.Events.Distributed.EntityUpdatedEto1[Volo.Abp.Users.UserEto] (SqliteConnection does not support nested transactions.) (SqliteConnection does not support nested transactions.) -------- System.InvalidOperationException : SqliteConnection does not support nested transactions. -------- System.InvalidOperationException : SqliteConnection does not support nested transactions.

    Stack Trace:  ModuleManager.InitializeModules(ApplicationInitializationContext context) AbpApplicationBase.InitializeModules() AbpApplicationWithExternalServiceProvider.Initialize(IServiceProvider serviceProvider) AbpIntegratedTest1.ctor() ShopLogicTestBase1.ctor() ShopLogicApplicationTestBase.ctor() SampleAppServiceTests.ctor() line 17 RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) ----- Inner Stack Trace ----- EventBusBase.ThrowOriginalExceptions(Type eventType, List1 exceptions) <62 more frames...> DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) AbpDbContext1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) UnitOfWork.CompleteAsync(CancellationToken cancellationToken) UserLookupService2.WithNewUowAsync(Func1 func) UserLookupService2.FindByIdAsync(Guid id, CancellationToken cancellationToken) CmsUserSynchronizer.HandleEventAsync(EntityUpdatedEto1 eventData) EventHandlerInvoker.InvokeAsync(IEventHandler eventHandler, Object eventData, Type eventType) EventBusBase.TriggerHandlerAsync(IEventHandlerFactory asyncHandlerFactory, Type eventType, Object eventData, List`1 exceptions, InboxConfig inboxConfig)

    (result has additional output)

    Open test log`

  • Steps to reproduce the issue:" download demo https://github.com/jarrad78shoplogic/sltest.git and try to run Automated tests. All tests fail after we upgraded from 5.2.1 to 5.3.4.

Please See related issue: #3689


3 Answer(s)
  • User Avatar
    0
    jarrad78 created

    I added shiwei.liang@volosoft.com to the git repo. Please let me know if I need to add someone else.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it out

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I have pushed a commit, you can check it.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38