airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject git commit: removing the unwanted thread sleep
Date Fri, 11 Jul 2014 17:29:50 GMT
Repository: airavata
Updated Branches:
  refs/heads/master f21be5526 -> 383373e12


removing the unwanted thread sleep


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/383373e1
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/383373e1
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/383373e1

Branch: refs/heads/master
Commit: 383373e1294a37d2888a63d52843a2a40b945ae3
Parents: f21be55
Author: Saminda Wijeratne <samindaw@gmail.com>
Authored: Fri Jul 11 13:29:40 2014 -0400
Committer: Saminda Wijeratne <samindaw@gmail.com>
Committed: Fri Jul 11 13:29:40 2014 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/airavata/integration/SimpleEchoIT.java   | 3 +--
 .../apache/airavata/integration/SingleAppIntegrationTestBase.java | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/383373e1/modules/integration-tests/src/test/java/org/apache/airavata/integration/SimpleEchoIT.java
----------------------------------------------------------------------
diff --git a/modules/integration-tests/src/test/java/org/apache/airavata/integration/SimpleEchoIT.java
b/modules/integration-tests/src/test/java/org/apache/airavata/integration/SimpleEchoIT.java
index f7a3335..e4b2931 100644
--- a/modules/integration-tests/src/test/java/org/apache/airavata/integration/SimpleEchoIT.java
+++ b/modules/integration-tests/src/test/java/org/apache/airavata/integration/SimpleEchoIT.java
@@ -96,8 +96,7 @@ public class SimpleEchoIT extends SingleAppIntegrationTestBase {
 
         launchExperiment(expId);
 
-        Thread.sleep(3000);
-	log.info("Experiment launched successfully\n");
+        log.info("Experiment launched successfully\n");
         log.info("Monitoring job in localhost");
         log.info("===========================");
         monitorJob(expId);

http://git-wip-us.apache.org/repos/asf/airavata/blob/383373e1/modules/integration-tests/src/test/java/org/apache/airavata/integration/SingleAppIntegrationTestBase.java
----------------------------------------------------------------------
diff --git a/modules/integration-tests/src/test/java/org/apache/airavata/integration/SingleAppIntegrationTestBase.java
b/modules/integration-tests/src/test/java/org/apache/airavata/integration/SingleAppIntegrationTestBase.java
index 1b097e7..84bd528 100644
--- a/modules/integration-tests/src/test/java/org/apache/airavata/integration/SingleAppIntegrationTestBase.java
+++ b/modules/integration-tests/src/test/java/org/apache/airavata/integration/SingleAppIntegrationTestBase.java
@@ -52,7 +52,6 @@ public class SingleAppIntegrationTestBase extends AbstractIntegrationTest
{
                 ExperimentStatus experimentStatus = null;
                 do {
                     try {
-                        Thread.sleep(2000);
                     	experimentStatus = client.getExperimentStatus(expId);
 						if (previousUpdateTime!=experimentStatus.getTimeOfStateChange()) {
 							previousUpdateTime=experimentStatus.getTimeOfStateChange();
@@ -61,6 +60,7 @@ public class SingleAppIntegrationTestBase extends AbstractIntegrationTest
{
 									+ " ["+new Date(previousUpdateTime).toString()+"]");
 							
 						}
+                        Thread.sleep(2000);
                     } catch (Exception e) {
                         log.error("Thread interrupted", e);
                     }


Mime
View raw message