Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 41d45c1

Browse files
committed
Drop tables so they don't influence other tests.
These tables were detected in the can_create_tables_after_UseUnicode_or_DefaultStringLenght_changed test because that test does not specify a search path (schema). DoesTableExist does not filter by schema unless specified.
1 parent 12f75e0 commit 41d45c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceStack.OrmLite.PostgreSQL.Tests/CreatePostgreSQLTablesTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void can_create_same_table_in_multiple_schemas_based_on_conn_string_searc
7878
dbS1.DropTable<CreatePostgreSQLTablesTests_dummy_table>();
7979
dbS1.CreateTable<CreatePostgreSQLTablesTests_dummy_table>();
8080
Assert.That(dbS1.Count<CreatePostgreSQLTablesTests_dummy_table>(), Is.EqualTo(0));
81+
dbS1.DropTable<CreatePostgreSQLTablesTests_dummy_table>();
8182
}
8283
builder.SearchPath = schema2;
8384

@@ -86,6 +87,7 @@ public void can_create_same_table_in_multiple_schemas_based_on_conn_string_searc
8687
dbS2.DropTable<CreatePostgreSQLTablesTests_dummy_table>();
8788
dbS2.CreateTable<CreatePostgreSQLTablesTests_dummy_table>();
8889
Assert.That(dbS2.Count<CreatePostgreSQLTablesTests_dummy_table>(), Is.EqualTo(0));
90+
dbS2.DropTable<CreatePostgreSQLTablesTests_dummy_table>();
8991
}
9092

9193
}

0 commit comments

Comments
 (0)