Browse Source
Set AbpSqliteOptions.BusyTimeout to null in test modules
pull/24380/head
maliming
2 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
13 changed files with
57 additions and
0 deletions
-
framework/test/Volo.Abp.EntityFrameworkCore.Tests/Volo/Abp/EntityFrameworkCore/AbpEntityFrameworkCoreTestModule.cs
-
modules/audit-logging/test/Volo.Abp.AuditLogging.EntityFrameworkCore.Tests/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingEntityFrameworkCoreTestModule.cs
-
modules/background-jobs/test/Volo.Abp.BackgroundJobs.EntityFrameworkCore.Tests/Volo/Abp/BackgroundJobs/EntityFrameworkCore/AbpBackgroundJobsEntityFrameworkCoreTestModule.cs
-
modules/blob-storing-database/test/Volo.Abp.BlobStoring.Database.EntityFrameworkCore.Tests/EntityFrameworkCore/BlobStoringDatabaseEntityFrameworkCoreTestModule.cs
-
modules/blogging/test/Volo.Blogging.EntityFrameworkCore.Tests/Volo/Blogging/EntityFrameworkCore/BloggingEntityFrameworkCoreTestModule.cs
-
modules/cms-kit/test/Volo.CmsKit.EntityFrameworkCore.Tests/EntityFrameworkCore/CmsKitEntityFrameworkCoreTestModule.cs
-
modules/docs/test/Volo.Docs.EntityFrameworkCore.Tests/Volo/Docs/EntityFrameworkCore/DocsEntityFrameworkCoreTestModule.cs
-
modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/AbpFeatureManagementEntityFrameworkCoreTestModule.cs
-
modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests/Volo/Abp/Identity/EntityFrameworkCore/AbpIdentityEntityFrameworkCoreTestModule.cs
-
modules/openiddict/test/Volo.Abp.OpenIddict.EntityFrameworkCore.Tests/Volo/Abp/OpenIddict/EntityFrameworkCore/OpenIddictEntityFrameworkCoreTestModule.cs
-
modules/permission-management/test/Volo.Abp.PermissionManagement.EntityFrameworkCore.Tests/Volo/Abp/PermissionManagement/EntityFrameworkCore/AbpPermissionManagementEntityFrameworkCoreTestModule.cs
-
modules/setting-management/test/Volo.Abp.SettingManagement.EntityFrameworkCore.Tests/Volo/Abp/SettingManagement/EntityFrameworkCore/AbpSettingManagementEntityFrameworkCoreTestModule.cs
-
modules/tenant-management/test/Volo.Abp.TenantManagement.EntityFrameworkCore.Tests/Volo/Abp/TenantManagement/EntityFrameworkCore/AbpTenantManagementEntityFrameworkCoreTestModule.cs
|
|
|
@ -30,6 +30,7 @@ public class AbpEntityFrameworkCoreTestModule : AbpModule |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
TestEntityExtensionConfigurator.Configure(); |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
|
|
|
|
@ -16,6 +16,11 @@ namespace Volo.Abp.AuditLogging.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpAuditLoggingEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -16,6 +16,11 @@ namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpBackgroundJobsEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -15,6 +15,11 @@ namespace Volo.Abp.BlobStoring.Database.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class BlobStoringDatabaseEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -18,6 +18,11 @@ namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
private SqliteConnection _sqliteConnection; |
|
|
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
_sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -20,6 +20,7 @@ public class CmsKitEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
context.Services.AddDataMigrationEnvironment(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -15,6 +15,11 @@ namespace Volo.Docs.EntityFrameworkCore |
|
|
|
)] |
|
|
|
public class DocsEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -19,6 +19,11 @@ namespace Volo.Abp.FeatureManagement.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpFeatureManagementEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -18,6 +18,11 @@ namespace Volo.Abp.Identity.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpIdentityEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -20,6 +20,11 @@ namespace Volo.Abp.OpenIddict.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class OpenIddictEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -14,6 +14,11 @@ namespace Volo.Abp.PermissionManagement.EntityFrameworkCore; |
|
|
|
typeof(AbpPermissionManagementTestBaseModule))] |
|
|
|
public class AbpPermissionManagementEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
context.Services.AddEntityFrameworkInMemoryDatabase(); |
|
|
|
|
|
|
|
@ -17,6 +17,11 @@ namespace Volo.Abp.SettingManagement.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpSettingManagementEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|
|
|
|
@ -17,6 +17,11 @@ namespace Volo.Abp.TenantManagement.EntityFrameworkCore; |
|
|
|
)] |
|
|
|
public class AbpTenantManagementEntityFrameworkCoreTestModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<AbpSqliteOptions>(x => x.BusyTimeout = null); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var sqliteConnection = CreateDatabaseAndGetConnection(); |
|
|
|
|