diff --git a/src/Akka.Persistence.SqlServer.Tests/DbUtils.cs b/src/Akka.Persistence.SqlServer.Tests/DbUtils.cs index 6910cca..fda0534 100644 --- a/src/Akka.Persistence.SqlServer.Tests/DbUtils.cs +++ b/src/Akka.Persistence.SqlServer.Tests/DbUtils.cs @@ -50,7 +50,6 @@ IF db_id('{databaseName}') IS NULL public static void Clean() { - var oldDatabaseName = _builder.InitialCatalog; var databaseName = $"akka_persistence_tests_{Guid.NewGuid()}"; _builder.InitialCatalog = databaseName; @@ -66,12 +65,6 @@ public static void Clean() using (var cmd = new SqlCommand()) { cmd.CommandText = $@" -IF db_id('{oldDatabaseName}') IS NOT NULL -BEGIN - ALTER DATABASE [{oldDatabaseName}] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; - DROP DATABASE [{oldDatabaseName}]; -END - IF db_id('{databaseName}') IS NULL BEGIN CREATE DATABASE [{databaseName}];