summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/sca-java-2.0-M5/modules/host-jetty
diff options
context:
space:
mode:
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();