From a70a84dcfeb92a9ae757afc42e2a70a17fae2e5a Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Sun, 10 Jul 2022 11:38:32 +0200 Subject: [PATCH] Make Select_nested_collection_with_groupby have deterministic ordering --- .../Query/NorthwindGroupByQueryTestBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs index f19ec1e02c0..965477edae0 100644 --- a/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs @@ -1988,7 +1988,7 @@ public virtual Task Select_nested_collection_with_groupby(bool async) ? c.Orders.GroupBy(o => o.OrderID).Select(g => g.Key).ToArray() : Array.Empty()), assertOrder: true, - elementAsserter: (e, a) => Assert.True(e.SequenceEqual(a))); + elementAsserter: (e, a) => Assert.True(e.OrderBy(x => x).SequenceEqual(a.OrderBy(x => x)))); [ConditionalTheory] [MemberData(nameof(IsAsyncData))]