-
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
Exception: SqliteConnection does not support nested transactions when unit testing application services #6050
Comments
SqliteConnection does not support nested transactions. This is expected.
|
Just run
|
@maliming Out of my curiosity,
means the exception should or should not be thrown? |
The exception should be thrown, Because it does not support nested transactions. |
@maliming I figured out after deleting some of my code, and found out that when you register a AsyncPeriodicBackgroundWorker and it's |
Delete this line, the error goes away... |
Yes, the root cause of this error is my background worker. And unit test framework gives me totally irrelevant info... Closing this now, but maybe we should add
in TicketTestBaseModule's ConfigureServices method, just like
|
abp ver: 3.3.0
Suddenly, all my application unit tests are failed because of
And both domain/ef tests are good, and I'm not changing anything related to uow.
I tested with vs/rider/cmdline, same result.
Full log here:
The text was updated successfully, but these errors were encountered: