Skip to content

Commit

Permalink
fix(xunit): disable pooling in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Dec 6, 2023
1 parent 7e6bef7 commit a673e22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Sitko.Core.Xunit/DbBaseTestScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected void AddDbContext<TDbContext>(IHostApplicationBuilder applicationBuild
moduleOptions.Database = $"{Id}_{dbName}";
moduleOptions.EnableSensitiveLogging = true;
moduleOptions.IncludeErrorDetails = true;
moduleOptions.EnableNpgsqlPooling = false;
configurePostgres?.Invoke(applicationContext, moduleOptions, Id, dbName);
}
else
Expand Down

0 comments on commit a673e22

Please sign in to comment.