From a0c3fbe525f6539846b12a1dcd947e46cdfb4883 Mon Sep 17 00:00:00 2001 From: Maxime Sinclair Date: Tue, 9 Jul 2013 17:32:09 +0200 Subject: [PATCH] IOException temporary fixed --- src/test/java/net/sourceforge/plantuml/servlet/TestImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/net/sourceforge/plantuml/servlet/TestImage.java b/src/test/java/net/sourceforge/plantuml/servlet/TestImage.java index dcfb176..b621639 100644 --- a/src/test/java/net/sourceforge/plantuml/servlet/TestImage.java +++ b/src/test/java/net/sourceforge/plantuml/servlet/TestImage.java @@ -35,7 +35,6 @@ public class TestImage extends WebappTestCase { int diagramLen = inMemoryImage.length; assertTrue( diagramLen > 10000); assertTrue( diagramLen < 20000); - Thread.sleep(500); responseStream.close(); } @@ -58,5 +57,6 @@ public class TestImage extends WebappTestCase { SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ZZZ", Locale.ENGLISH); Date lastModified = format.parse( response.getHeaderField( "Last-Modified")); assertTrue( "Last-Modified is not in the past", lastModified.before( new Date())); + Thread.sleep(500); // Time to receive the image } }