usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [13/21] usergrid git commit: Add an additional reindex/wait to test that fails intermittently.
Date Tue, 17 Nov 2015 23:47:28 GMT
Add an additional reindex/wait to test that fails intermittently.


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

Branch: refs/heads/master
Commit: 4cf69e6f0498dbdc55e55739d38dd78f32a87e58
Parents: 41dde12
Author: Dave Johnson <snoopdave@apache.org>
Authored: Tue Nov 17 08:12:30 2015 -0500
Committer: Dave Johnson <snoopdave@apache.org>
Committed: Tue Nov 17 08:12:30 2015 -0500

----------------------------------------------------------------------
 .../src/test/java/org/apache/usergrid/management/RoleIT.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/4cf69e6f/stack/services/src/test/java/org/apache/usergrid/management/RoleIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/management/RoleIT.java b/stack/services/src/test/java/org/apache/usergrid/management/RoleIT.java
index e2a1941..0bd4f41 100644
--- a/stack/services/src/test/java/org/apache/usergrid/management/RoleIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/management/RoleIT.java
@@ -64,7 +64,6 @@ public class RoleIT {
 
         UUID applicationId = setup.getMgmtSvc().createApplication( organization.getUuid(),
"test-app" ).getId();
         EntityManager em = setup.getEmf().getEntityManager( applicationId );
-
         setup.getEntityIndex().refresh(em.getApplicationId());
 
         Map<String, Object> properties = new LinkedHashMap<String, Object>();
@@ -75,6 +74,7 @@ public class RoleIT {
 
         em.createRole( "logged-in", "Logged In", 2000 );
         setup.getEntityIndex().refresh(em.getApplicationId());
+        setup.getEntityIndex().refresh(em.getApplicationId());
         em.addUserToRole( user.getUuid(), "logged-in" );
 
         String accessToken = setup.getMgmtSvc().getAccessTokenForAppUser( applicationId,
user.getUuid(), 0 );


Mime
View raw message