Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jul 15, 2024
1 parent 88b2a02 commit cccd72e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Tests/FAnsiTests/CrossPlatformTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,15 @@ public void HorribleDatabaseAndTableNames(DatabaseType type,string horribleDatab
var database = GetTestDatabase(type);

SqlConnection.ClearAllPools();
//var db = database.Server.ExpectDatabase(horribleTableName);
//if (db.Exists())
// db.Drop();
if (type == DatabaseType.PostgreSql)
database.Server.CreateDatabase(horribleDatabaseName);

database = database.Server.ExpectDatabase(horribleDatabaseName);
database.Create(true);
if(type != DatabaseType.PostgreSql)
database.Create(true);

SqlConnection.ClearAllPools();

Expand Down Expand Up @@ -918,9 +924,8 @@ public void HorribleColumnNames(DatabaseType type, string horribleDatabaseName,
AssertCanCreateDatabases();

var database = GetTestDatabase(type);

database.Server.CreateDatabase(horribleDatabaseName);
database = database.Server.ExpectDatabase(horribleDatabaseName);
database.Create(true);
Assert.That(database.GetRuntimeName(), Is.EqualTo(horribleDatabaseName).IgnoreCase);

try
Expand Down

0 comments on commit cccd72e

Please sign in to comment.