Increased timeouts to avoid failures on slower machines.

This commit is contained in:
Simone Bordet 2016-06-14 00:26:18 +02:00
parent ebee9f12f9
commit c0f54ab82f
1 changed files with 14 additions and 14 deletions

View File

@ -18,10 +18,6 @@
package org.eclipse.jetty.test.jsp;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
@ -49,6 +45,10 @@ import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
/**
* Test various paths for JSP resources that tickle various java.io.File bugs to get around the JspServlet matching, that then flows to the DefaultServlet to be
* served as source files.
@ -180,8 +180,8 @@ public class JspAndDefaultWithAliasesTest
try
{
conn = (HttpURLConnection)uri.toURL().openConnection();
conn.setConnectTimeout(1000);
conn.setReadTimeout(1000);
conn.setConnectTimeout(5000);
conn.setReadTimeout(5000);
assertResponse(conn);
}
finally