You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/20 01:20:44 UTC
[2/3] git commit: Removed thread waiting in favor of the get state
command.
Removed thread waiting in favor of the get state command.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/79dc2c54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/79dc2c54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/79dc2c54
Branch: refs/pull/76/merge
Commit: 79dc2c5402c3f2cc8e6f48fd5ad5c93695492dea
Parents: a1b6124
Author: grey <gr...@apigee.com>
Authored: Wed Mar 19 16:33:55 2014 -0700
Committer: grey <gr...@apigee.com>
Committed: Wed Mar 19 16:33:55 2014 -0700
----------------------------------------------------------------------
.../apache/usergrid/management/cassandra/ManagementServiceIT.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/79dc2c54/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
index 310d46a..44e0277 100644
--- a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
@@ -1517,7 +1517,7 @@ public class ManagementServiceIT {
when( jobExecution.getJobData() ).thenReturn( jobData );
exportService.doExport( jobExecution );
- Thread.sleep(1000);
+ while (!exportService.getState( applicationId,exportUUID ).equals("FINISHED"));
AWSCredentials myCredentials = new BasicAWSCredentials(
System.getProperty( "accessKey" ), System.getProperty("secretKey"));
@@ -1592,6 +1592,7 @@ public class ManagementServiceIT {
when( jobExecution.getJobData() ).thenReturn( jobData );
exportService.doExport( jobExecution );
+ while (!exportService.getState( applicationId,exportUUID ).equals("FINISHED"));
AWSCredentials myCredentials = new BasicAWSCredentials(
System.getProperty( "accessKey" ), System.getProperty("secretKey"));