usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [09/50] [abbrv] usergrid git commit: Add some delay in query validator test after creating data for the async indexing to complete.
Date Wed, 17 Aug 2016 21:17:28 GMT
Add some delay in query validator test after creating data for the async indexing to complete.


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

Branch: refs/heads/datastax-cass-driver
Commit: 494f1bbdb21d6b29de3b851d052ed35b6fa07978
Parents: 789f884
Author: Michael Russo <mrusso@apigee.com>
Authored: Wed Jul 27 13:06:42 2016 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Wed Jul 27 13:06:42 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/usergrid/query/validator/AbstractQueryIT.java | 3 ++-
 .../org/apache/usergrid/query/validator/users/UserQueryIT.java    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/494f1bbd/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/AbstractQueryIT.java
----------------------------------------------------------------------
diff --git a/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/AbstractQueryIT.java
b/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/AbstractQueryIT.java
index 139b60b..b751621 100644
--- a/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/AbstractQueryIT.java
+++ b/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/AbstractQueryIT.java
@@ -83,7 +83,7 @@ public class AbstractQueryIT {
         password = (String)properties.get("usergrid.query.validator.api.authorize.password");
     }
 
-    protected static void createInitializationDatas(String collection) {
+    protected static void createInitializationDatas(String collection) throws InterruptedException{
         List<Entity> entities = loadEntitiesFromResource(collection);
         QueryValidationConfiguration configuration = new QueryValidationConfiguration();
         configuration.setEndpointUri(fullEndpoint);
@@ -95,6 +95,7 @@ public class AbstractQueryIT {
         configuration.setEntities(entities);
         validator.setConfiguration(configuration);
         validator.setup();
+        Thread.sleep(1000);
     }
 
     private static List<Entity> loadEntitiesFromResource(String collection) {

http://git-wip-us.apache.org/repos/asf/usergrid/blob/494f1bbd/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/users/UserQueryIT.java
----------------------------------------------------------------------
diff --git a/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/users/UserQueryIT.java
b/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/users/UserQueryIT.java
index 915b353..445d153 100644
--- a/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/users/UserQueryIT.java
+++ b/stack/query-validator/src/test/java/org/apache/usergrid/query/validator/users/UserQueryIT.java
@@ -38,7 +38,7 @@ import java.util.List;
 public class UserQueryIT extends AbstractQueryIT {
 
     @BeforeClass
-    public static void setDatas() {
+    public static void setDatas() throws InterruptedException{
         createInitializationDatas("user");
     }
 


Mime
View raw message