summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-10-04 02:07:23 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-10-04 02:07:23 +0000
commit25b96a3aebc9a83b3fb46ff44c9a748291495c17 (patch)
tree58871f14687b1f91083d916f6fcbf687d3e62c3f /sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty
parent1ce247e2a1c8fa6d41874f8bf9b34c82b22c9463 (diff)
Adding delay to avoid issues with address already in use running Jetty test cases
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1004083 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty')
-rw-r--r--sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java b/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java
index a3199cf4d1..7c470ca939 100644
--- a/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java
+++ b/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java
@@ -100,7 +100,7 @@ public class JettyServerTestCase extends TestCase {
service.stop();
assertTrue(servlet.invoked);
}
-
+
/**
* Verifies requests are properly routed according to the Servlet mapping
*/
@@ -151,7 +151,7 @@ public class JettyServerTestCase extends TestCase {
conn.connect();
read(conn.getInputStream());
-
+
service.stop();
assertTrue(servlet.invoked);
@@ -161,6 +161,7 @@ public class JettyServerTestCase extends TestCase {
* Verifies that Servlets can be registered with multiple ports
*/
public void testRegisterMultiplePorts() throws Exception {
+ Thread.sleep(1000);
JettyServer service = new JettyServer(workScheduler);
service.start();
TestServlet servlet = new TestServlet();