1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2025-01-03 05:00:14 +00:00

IOException temporary fixed

This commit is contained in:
Maxime Sinclair 2013-07-09 17:32:09 +02:00
parent 4339629f97
commit a0c3fbe525

View File

@ -35,7 +35,6 @@ public class TestImage extends WebappTestCase {
int diagramLen = inMemoryImage.length; int diagramLen = inMemoryImage.length;
assertTrue( diagramLen > 10000); assertTrue( diagramLen > 10000);
assertTrue( diagramLen < 20000); assertTrue( diagramLen < 20000);
Thread.sleep(500);
responseStream.close(); 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); SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ZZZ", Locale.ENGLISH);
Date lastModified = format.parse( response.getHeaderField( "Last-Modified")); Date lastModified = format.parse( response.getHeaderField( "Last-Modified"));
assertTrue( "Last-Modified is not in the past", lastModified.before( new Date())); assertTrue( "Last-Modified is not in the past", lastModified.before( new Date()));
Thread.sleep(500); // Time to receive the image
} }
} }