Clear connection pools before deleting test database (#2922)
This commit is contained in:
Родитель
01b3c888d4
Коммит
508dd9e88f
|
@ -112,6 +112,8 @@ namespace Microsoft.Health.Fhir.Tests.Integration.Persistence
|
|||
|
||||
public async Task DeleteDatabase(string databaseName, CancellationToken cancellationToken = default)
|
||||
{
|
||||
SqlConnection.ClearAllPools();
|
||||
|
||||
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
|
||||
{
|
||||
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(_masterDatabaseName, cancellationToken);
|
||||
|
|
Загрузка…
Ссылка в новой задаче