diff --git a/TransactionProcessorACL.IntegrationTests/Common/DockerHelper.cs b/TransactionProcessorACL.IntegrationTests/Common/DockerHelper.cs index 61f8813..35e2fde 100644 --- a/TransactionProcessorACL.IntegrationTests/Common/DockerHelper.cs +++ b/TransactionProcessorACL.IntegrationTests/Common/DockerHelper.cs @@ -409,8 +409,11 @@ private async Task RemoveEstateReadModel() // Build the connection string (to master) String connectionString = Setup.GetLocalConnectionString(databaseName); - EstateReportingContext context = new EstateReportingContext(connectionString); - await context.Database.EnsureDeletedAsync(CancellationToken.None); + await Retry.For(async () => + { + EstateReportingContext context = new EstateReportingContext(connectionString); + await context.Database.EnsureDeletedAsync(CancellationToken.None); + }, retryFor: TimeSpan.FromMinutes(2), retryInterval: TimeSpan.FromSeconds(30)); } }