You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2017/03/28 07:42:31 UTC
ignite git commit: .NET: Fix CacheLinqTest failures caused by relying
on result order
Repository: ignite
Updated Branches:
refs/heads/master 858ed3a55 -> 6a979eaee
.NET: Fix CacheLinqTest failures caused by relying on result order
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6a979eae
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6a979eae
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6a979eae
Branch: refs/heads/master
Commit: 6a979eaee0b2f855841851818b1fdb0a43c427fe
Parents: 858ed3a
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Tue Mar 28 10:42:24 2017 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Tue Mar 28 10:42:24 2017 +0300
----------------------------------------------------------------------
.../Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/6a979eae/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
index 8730e37..7897ea7 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
@@ -420,6 +420,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
var roles = GetRoleCache().AsCacheQueryable();
var res = persons.Join(roles, person => person.Key, role => role.Key.Foo, (person, role) => role)
+ .OrderBy(x => x.Key.Bar)
.ToArray();
Assert.AreEqual(RoleCount, res.Length);
@@ -433,7 +434,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
public void TestCrossCacheJoinInline()
{
var res = GetPersonCache().AsCacheQueryable().Join(GetRoleCache().AsCacheQueryable(),
- person => person.Key, role => role.Key.Foo, (person, role) => role).ToArray();
+ person => person.Key, role => role.Key.Foo, (person, role) => role)
+ .OrderBy(x => x.Key.Bar).ToArray();
Assert.AreEqual(RoleCount, res.Length);
Assert.AreEqual(101, res[0].Key.Bar);
@@ -1026,6 +1028,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
(int a, int b, string sep) =>
roles
.Where(x => x.Key.Bar > a)
+ .OrderBy(x => x.Key.Bar)
.Join(persons.Where(x => x.Key < b && x.Key > 0),
r => r.Key.Foo,
p => p.Value.Address.Zip,