This commit is contained in:
Sipke Schoorstra 2021-05-04 12:32:26 +02:00
parent 78101ce882
commit d0affca777
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ namespace Elsa.Core.IntegrationTests.Autofixture
return builder => {
builder.ElsaCallbacks.Add(elsa => {
elsa.UseEntityFrameworkPersistence(opts => {
elsa.UseNonPooledEntityFrameworkPersistence(opts => {
opts.UseSqlite($"Data Source={tempFolder.GetContainedPath("elsa.db")};", db => db.MigrationsAssembly(typeof(SqliteElsaContextFactory).Assembly.GetName().Name));
});
});

View file

@ -15,7 +15,7 @@ namespace Elsa.Core.IntegrationTests.Persistence.YesSql
public class PostgresSqlYesSqlIntegrationTests
{
[Theory(DisplayName = "A persistable workflow instance with default persistence behaviour should be persisted-to and readable-from a YesSQL/PostgreSql store after being run"), AutoMoqData]
public async Task APersistableWorkflowInstanceWithDefaultPersistanceBehaviourShouldBeRoundTrippable([WithPersistableWorkflow,WithPostgresYesSql] ElsaHostBuilderBuilder hostBuilderBuilder)
public async Task APersistableWorkflowInstanceWithDefaultPersistenceBehaviourShouldBeRoundTrippable([WithPersistableWorkflow,WithPostgresYesSql] ElsaHostBuilderBuilder hostBuilderBuilder)
{
var hostBuilder = hostBuilderBuilder.GetHostBuilder();
hostBuilder.ConfigureServices((ctx, services) => services.AddHostedService<HostedWorkflowRunner>());