Fix test
This commit is contained in:
parent
78101ce882
commit
d0affca777
|
|
@ -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));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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>());
|
||||
|
|
|
|||
Loading…
Reference in a new issue