Commit 3ad69ff2 authored by Philippe Merle's avatar Philippe Merle
Browse files

Wait for 1 second to be sure that the Web server is started.

parent d23b86da
...@@ -41,10 +41,12 @@ public class ComancheTestCase ...@@ -41,10 +41,12 @@ public class ComancheTestCase
extends FraSCAtiTestCase extends FraSCAtiTestCase
{ {
@Test @Test
public final void testImage() throws IOException, MalformedURLException public final void testImage() throws IOException, MalformedURLException, InterruptedException
{ {
Runnable service = getService(Runnable.class, "r"); Runnable service = getService(Runnable.class, "r");
service.run(); service.run();
// Wait for 1 second to be sure that the Web server is started.
Thread.sleep(1000);
URL url = new URL("http://localhost:8088/gnu.jpg"); URL url = new URL("http://localhost:8088/gnu.jpg");
File file = new File("gnu.jpg"); File file = new File("gnu.jpg");
BufferedImage remoteImage = ImageIO.read(url); BufferedImage remoteImage = ImageIO.read(url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment