-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
As part of syncing EFCore.PG for 9.0.0-preview.1, I'm running into failures e.g. in Access_mode_can_be_overridden_at_entity_and_property_levels:
Assert.Equal() Failure: During comparison of two collections, GetHashCode was called, but only a comparison function was provided. This typically indicates trying to compare two sets with an item comparison function, which is not supported. For more information, see https://xunit.net/docs/hash-sets-vs-linear-containers
at Microsoft.EntityFrameworkCore.TestUtilities.ModelAsserter.AssertEqual(IEnumerable`1 expectedForeignKey, IEnumerable`1 actualForeignKey, Boolean assertOrder, Boolean compareAnnotations) in /Users/roji/projects/efcore/test/EFCore.Specification.Tests/TestUtilities/ModelAsserter.cs:line 693
It seems that on that line, we're indeed comparing two SortedSets with the Assert.Equal() overload that's not supposed to be used with sets (docs). I'm not sure why this is failing on Npgsql but passing with SQL Server though.
/cc @AndriySvyryd
Reactions are currently unavailable