summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-08-19 11:44:01 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-08-19 11:44:01 +0000
commit88f31361110e97e56d4bb6cba82ec4a085913adb (patch)
tree252e47c107002c63442c98a8f54cce44f702150e /sca-java-2.x
parent99cd88c169ed5f93153fa4e00b5e4e475115fc16 (diff)
Add a sleep after the sync request otherwise the next async request fails for a reason i've still to work out. Otherwise all these tests work ok for me now so committing so i can see if they work ok on hudson now without hanging
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1159600 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x')
-rw-r--r--sca-java-2.x/trunk/testing/itest/async-services/src/main/java/org/apache/tuscany/sca/itest/Service1ClientImpl.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/async-services/src/main/java/org/apache/tuscany/sca/itest/Service1ClientImpl.java b/sca-java-2.x/trunk/testing/itest/async-services/src/main/java/org/apache/tuscany/sca/itest/Service1ClientImpl.java
index a500b904eb..acc92d002c 100644
--- a/sca-java-2.x/trunk/testing/itest/async-services/src/main/java/org/apache/tuscany/sca/itest/Service1ClientImpl.java
+++ b/sca-java-2.x/trunk/testing/itest/async-services/src/main/java/org/apache/tuscany/sca/itest/Service1ClientImpl.java
@@ -36,10 +36,15 @@ public class Service1ClientImpl implements Service1 {
@Override
public String operation1(String input) {
- String resp = service1.operation1(input);
+ String resp = "";
+ resp += service1.operation1(input);
+ try {
+ Thread.sleep(3000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
resp += invokeAsyncType1(input);
resp += invokeAsyncType2(input);
-
return resp;
}