Open Closed

Unit test failure #4651


User avatar
0
sonnn18 created
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
  • SqliteConnection does not support nested transactions.
  • Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
  • Steps to reproduce the issue: When run all of the unit test cases, some of the unit tests failed because of those exception above. The transact ion behavior already disabled.


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please try that.

    https://support.abp.io/QA/Questions/2176/Regarding-Unit-test-issue#answer-a0b36b39-5bdd-3259-a49e-3a005ca3118c

  • User Avatar
    0
    sonnn18 created

    Hi, The above thread is resolved the nested transaction issue, However, I still receive a exception below:

    • The transaction object is not associated with the same connection object as this command

    The issue above only happened when I run all unit test cases when running a single test case then it passed.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The transaction object is not associated with the same connection object as this command

    Please share the error stack.

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