From a673e22731892413ae92c03777a3bd2e820df35c Mon Sep 17 00:00:00 2001 From: George Drak Date: Fri, 13 Oct 2023 15:18:11 +0500 Subject: [PATCH] fix(xunit): disable pooling in tests --- src/Sitko.Core.Xunit/DbBaseTestScope.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sitko.Core.Xunit/DbBaseTestScope.cs b/src/Sitko.Core.Xunit/DbBaseTestScope.cs index 54c02166c..307da14f2 100644 --- a/src/Sitko.Core.Xunit/DbBaseTestScope.cs +++ b/src/Sitko.Core.Xunit/DbBaseTestScope.cs @@ -47,6 +47,7 @@ protected void AddDbContext(IHostApplicationBuilder applicationBuild moduleOptions.Database = $"{Id}_{dbName}"; moduleOptions.EnableSensitiveLogging = true; moduleOptions.IncludeErrorDetails = true; + moduleOptions.EnableNpgsqlPooling = false; configurePostgres?.Invoke(applicationContext, moduleOptions, Id, dbName); } else