usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [68/68] [abbrv] incubator-usergrid git commit: check trailing page
Date Fri, 17 Apr 2015 22:48:13 GMT
check trailing page


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

Branch: refs/heads/two-dot-o-dev
Commit: 8d965b3fb39a3a10c21ceb643aa4261a45449cdb
Parents: 1f83f0f
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Fri Apr 17 16:46:43 2015 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Fri Apr 17 16:46:43 2015 -0600

----------------------------------------------------------------------
 .../apache/usergrid/persistence/index/impl/EntityIndexTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8d965b3f/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
b/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
index 9b8a9f5..7112f9e 100644
--- a/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
+++ b/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
@@ -720,7 +720,7 @@ public class EntityIndexTest extends BaseIT {
 
             int ordinal = 0;//i == 0 ? 0 : 1;
             assertNotEquals("Scroll matches last item from previous page",lastId, results.get(ordinal).getId().getUuid());
-            lastId = results.get((i+1)*limit-1).getId().getUuid();
+            lastId = results.get(limit -1).getId().getUuid();
             assertEquals("Failed on page "+i ,results.get( ordinal ).getId(), entityIds.get(
i*limit ) );
         }
 


Mime
View raw message