From 5255f8b0e180db32fc691229ff053553fdf9b6c6 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..eff5a2fb33c 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))]