Skip to content

Commit cdbead6

Browse files
committed
Fix non-deterministic test
1 parent 5665ce6 commit cdbead6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/EFCore.Specification.Tests/ManyToManyLoadTestBase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ public virtual async Task Load_collection_using_Query_with_filtered_Include_and_
965965
var queryable = collectionEntry
966966
.Query()
967967
.Include(e => e.ThreeSkipFull.Where(e => e.Id == 13 || e.Id == 11))
968+
.OrderBy(e => e.Id)
968969
.Select(e => new { e.Id, e.Name, Count1 = e.OneSkipShared.Count, Count3 = e.ThreeSkipFull.Count });
969970

970971
var projected = async

test/EFCore.SqlServer.FunctionalTests/ManyToManyLoadSqlServerTest.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ INNER JOIN (
177177
FROM [EntityOneEntityTwo] AS [e3]
178178
INNER JOIN [EntityTwos] AS [e4] ON [e3].[EntityTwoId] = [e4].[Id]
179179
) AS [t] ON [e2].[Id] = [t].[EntityOneId]
180-
WHERE [e2].[Id] = @__p_0");
180+
WHERE [e2].[Id] = @__p_0
181+
ORDER BY [t].[Id]");
181182
}
182183

183184
public override async Task Load_collection_using_Query_with_join(bool async)

0 commit comments

Comments
 (0)