diff --git a/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs index bfdd0b35b81..4fd8e829969 100644 --- a/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs @@ -181,7 +181,7 @@ public virtual Task Projection_of_entity_type_into_object_list(bool async) { return AssertQuery( async, - ss => ss.Set().Select(c => new List { c }), + ss => ss.Set().OrderBy(c => c.CustomerID).Select(c => new List { c }), entryCount: 91, assertOrder: true); } diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs index 7066575f684..4e46d6c03c2 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs @@ -114,7 +114,8 @@ public override async Task Projection_of_entity_type_into_object_list(bool async AssertSql( @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); +FROM [Customers] AS [c] +ORDER BY [c].[CustomerID]"); } public override async Task Project_to_int_array(bool async)