Restore Scope.Dispose in AppComponentTest and update WorkflowServer DB connection string with pool size configuration

This commit is contained in:
Sipke Schoorstra 2025-12-10 11:25:17 +01:00
parent da88712e75
commit 8730f0cdeb
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ public abstract class AppComponentTest(App app) : IDisposable
{
// Disposing the Scope here and in other places where it is created somehow seems to cause the test runner to hang when running other test projects.
// Let's comment it out for the time being.
//Scope.Dispose();
Scope.Dispose();
OnDispose();
}

View file

@ -55,7 +55,7 @@ public class WorkflowServer(Infrastructure infrastructure, string url) : WebAppl
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
var dbConnectionString = infrastructure.DbContainer.GetConnectionString();
var dbConnectionString = infrastructure.DbContainer.GetConnectionString() + ";Minimum Pool Size=0;Maximum Pool Size=10";
var rabbitMqConnectionString = infrastructure.RabbitMqContainer.GetConnectionString();
builder.UseUrls(url);