pathqueryit
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/31d319b8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/31d319b8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/31d319b8 Branch: refs/heads/USERGRID-614 Commit: 31d319b895ce8f541cc4e87a141a2f79119a18ab Parents: c1ae796 Author: Shawn Feldman <[email protected]> Authored: Thu May 7 11:12:31 2015 -0600 Committer: Shawn Feldman <[email protected]> Committed: Thu May 7 11:12:31 2015 -0600 ---------------------------------------------------------------------- .../usergrid/corepersistence/index/AsyncIndexServiceTest.java | 1 - .../test/java/org/apache/usergrid/persistence/PathQueryIT.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/31d319b8/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java ---------------------------------------------------------------------- diff --git a/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java b/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java index 048b304..4779877 100644 --- a/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java +++ b/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java @@ -146,7 +146,6 @@ public abstract class AsyncIndexServiceTest { final SearchEdge collectionSearchEdge = CpNamingUtils.createSearchEdgeFromSource( collectionEdge ); - //query until it's available final CandidateResults collectionResults = getResults( applicationEntityIndex, collectionSearchEdge, SearchTypes.fromTypes( testEntity.getId().getType() ), 1, 100 ); http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/31d319b8/stack/core/src/test/java/org/apache/usergrid/persistence/PathQueryIT.java ---------------------------------------------------------------------- diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/PathQueryIT.java b/stack/core/src/test/java/org/apache/usergrid/persistence/PathQueryIT.java index c5873ea..fee93c3 100644 --- a/stack/core/src/test/java/org/apache/usergrid/persistence/PathQueryIT.java +++ b/stack/core/src/test/java/org/apache/usergrid/persistence/PathQueryIT.java @@ -79,12 +79,12 @@ public class PathQueryIT extends AbstractCoreIT { // query the users, ignoring page boundaries Results results = em.searchCollection( em.getApplicationRef(), "users", userQuery ); PagingResultsIterator pri = new PagingResultsIterator( results ); - int count = 2; + int count = 13; while ( pri.hasNext() ) { Entity e = ( Entity ) pri.next(); - assertEquals( count++, e.getProperty( "index" ) ); + assertEquals( count --, e.getProperty( "index" ) ); } - assertEquals( count, expectedUserQuerySize + 2 ); + assertEquals( count, 1 ); // query devices as a sub-query of the users, ignoring page boundaries Query deviceQuery = Query.fromQL( "select * where index >= 2 " );
