File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Optimizely.TestContainers.Shared Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,12 @@ private async Task<MsSqlContainer> CreateDatabaseContainer()
9696
9797 private async Task < string > CreateNamedDatabase ( MsSqlContainer container , string databaseName )
9898 {
99+ databaseName = $ "{ GetType ( ) . Name } -{ databaseName } ";
100+
99101 var masterConnectionString = container . GetConnectionString ( ) ;
100102 await using var connection = new SqlConnection ( masterConnectionString ) ;
101103 await connection . OpenAsync ( ) ;
102- await using var command = new SqlCommand ( $ "CREATE DATABASE [{ GetType ( ) . Name } - { databaseName } ]", connection ) ;
104+ await using var command = new SqlCommand ( $ "CREATE DATABASE [{ databaseName } ]", connection ) ;
103105 await command . ExecuteNonQueryAsync ( ) ;
104106
105107 // Workaround to set separate database names inside container
You can’t perform that action at this time.
0 commit comments