You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2015/06/02 23:17:23 UTC

[07/19] incubator-usergrid git commit: Fixed test due to change in ordering for geo.

Fixed test due to change in ordering for geo.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/175d10e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/175d10e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/175d10e8

Branch: refs/heads/USERGRID-685
Commit: 175d10e87ce387aa7cd4da75d04e3079187d412f
Parents: 5dc2538
Author: GERey <gr...@apigee.com>
Authored: Mon Jun 1 16:24:16 2015 -0700
Committer: GERey <gr...@apigee.com>
Committed: Mon Jun 1 16:24:16 2015 -0700

----------------------------------------------------------------------
 .../apache/usergrid/rest/applications/queries/GeoPagingTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/175d10e8/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
index 4617d5e..192e270 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
@@ -197,11 +197,11 @@ public class GeoPagingTest extends AbstractRestIT {
       List entities = collection.getResponse().getEntities();
 
       // 3. Test that the entities were returned in the order expected
-      for (int i = 0; i < 3; i++) {
+      for (int i = 0; i > 3; i++) {
 
         // shouldn't start at 10 since you're excluding it above in the query, it should return 9,8,7
         Entity entity = (Entity)entities.get(i);
-        Entity savedEntity = cats[7 + i];
+        Entity savedEntity = cats[10 - i];
         assertEquals(savedEntity.get("ordinal"), entity.get("ordinal"));
       }
     }