Open Closed

Randomly tests are failing ABP V7.2.2 #5204


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core

Hi, after updating the ABP from V6.0 to V7.2.2.** Random tests are failing **

following is the screenshot of ABP Sample tests is failing sometimes I'm getting Null Reference Exception and Sometime System.InvalidOperationException : SqliteConnection does not support nested transactions.

I have tried to add the context.Services.AddAlwaysDisableUnitOfWorkTransaction(); but the issue is still there

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Can you try this?

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<FeatureManagementOptions>(options =>
        {
            options.SaveStaticFeaturesToDatabase = false;
            options.IsDynamicFeatureStoreEnabled = false;
        });
        Configure<PermissionManagementOptions>(options =>
        {
            options.SaveStaticPermissionsToDatabase = false;
            options.IsDynamicPermissionStoreEnabled = false;
        });
        context.Services.AddAlwaysDisableUnitOfWorkTransaction();
    
        ConfigureInMemorySqlite(context.Services);
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sukhdeep.dhillon created

    Thank you that works :)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 24, 2026, 12:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.