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

incubator-usergrid git commit: Fixed GeoPagingTest

Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-dev 7b4ef60c1 -> 4df53d1cb


Fixed GeoPagingTest


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

Branch: refs/heads/two-dot-o-dev
Commit: 4df53d1cbf708e7aeb6807d68bc06e0f7e28c4fd
Parents: 7b4ef60
Author: GERey <gr...@apigee.com>
Authored: Fri May 29 17:19:52 2015 -0700
Committer: GERey <gr...@apigee.com>
Committed: Fri May 29 17:19:52 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/4df53d1c/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 d83bee4..4617d5e 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
@@ -93,7 +93,8 @@ public class GeoPagingTest extends AbstractRestIT {
     this.refreshIndex();
     // 2. Query the groups from a nearby location, restricting the search
     //    by creation time to a single entity where created[i-1] < created[i] < created[i+1]
-    String query = "select * where location within 20000 of 37.0,-75.0 "
+      //since this geo location is contained by an actor it needs to be actor.location.
+    String query = "select * where actor.location within 20000 of 37.0,-75.0 "
         + " and created > " + (index[0])
         + " and created < " + (index[2])
         + " order by created";