ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ag...@apache.org
Subject [33/50] [abbrv] ignite git commit: .NET: Fix CacheLinqTest failures caused by relying on result order
Date Wed, 29 Mar 2017 14:02:57 GMT
.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/ignite-4003
Commit: 6a979eaee0b2f855841851818b1fdb0a43c427fe
Parents: 858ed3a
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Tue Mar 28 10:42:24 2017 +0300
Committer: Pavel Tupitsyn <ptupitsyn@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,


Mime
View raw message