Make IdleTimeoutTest jdk1.5 compliant

This commit is contained in:
Jan Bartel 2013-01-22 08:58:35 +11:00
parent 91a94f8213
commit 92af54c3fc
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class IdleTimeoutTest
final HttpClient client = new HttpClient();
client.setMaxConnectionsPerAddress(4);
client.setConnectorType(HttpClient.CONNECTOR_SOCKET);
client.setTimeout(TimeUnit.DAYS.toMillis(1)); // very long timeout on data
client.setTimeout(TimeUnit.SECONDS.toMillis(86400)); // very long timeout on data
client.setIdleTimeout(500); // very short idle timeout
client.start();