From a83302044366aca274e5aa124a2781973612dd91 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Wed, 17 Jul 2019 18:24:37 +0200 Subject: [PATCH] Fix non-determinstic set operation test --- .../Query/SimpleQueryTestBase.SetOperations.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/EFCore.Specification.Tests/Query/SimpleQueryTestBase.SetOperations.cs b/test/EFCore.Specification.Tests/Query/SimpleQueryTestBase.SetOperations.cs index 0c9349ba00f..c79dc9002bc 100644 --- a/test/EFCore.Specification.Tests/Query/SimpleQueryTestBase.SetOperations.cs +++ b/test/EFCore.Specification.Tests/Query/SimpleQueryTestBase.SetOperations.cs @@ -193,10 +193,12 @@ public virtual Task Union_Take_Union_Take(bool isAsync) => AssertQuery(isAsync, cs => cs .Where(c => c.City == "Berlin") .Union(cs.Where(c => c.City == "London")) + .OrderBy(c => c.CustomerID) .Take(1) .Union(cs.Where(c => c.City == "Mannheim")) - .Take(1), - entryCount: 666); + .Take(1) + .OrderBy(c => c.CustomerID), + entryCount: 1, assertOrder: true); [ConditionalTheory] [MemberData(nameof(IsAsyncData))]