Skip to content

Commit d1e04c2

Browse files
Shay RojanskyCopilot
andcommitted
Update TPC inheritance insert test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ea39466 commit d1e04c2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

test/EFCore.PG.FunctionalTests/Query/Inheritance/TPCInheritanceQueryNpgsqlTest.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ ORDER BY e1."Id" NULLS FIRST
7878
""");
7979
}
8080

81-
// Seed data for the fixture manually inserts entities with IDs 1, 2; then this test attempts to insert another one with an auto-generated ID,
82-
// but the PG sequence wasn't updated so produces 1, resulting in a conflict. The test should be consistent in either using either
83-
// auto-generated IDs or not across the board.
8481
public override Task Can_insert_update_delete()
85-
=> Assert.ThrowsAsync<DbUpdateException>(base.Can_insert_update_delete);
82+
=> base.Can_insert_update_delete();
8683

8784
public override async Task Can_query_all_animals(bool async)
8885
{

0 commit comments

Comments
 (0)