Improve test performance.
Running with the LEGACY compliance will take ~10 minutes for this test. Running with the RFC7578 compliance will take ~1 min 45 secs. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
a1bb3b4491
commit
1a0f08b84d
|
@ -48,6 +48,9 @@ import org.eclipse.jetty.client.util.MultiPartContentProvider;
|
|||
import org.eclipse.jetty.client.util.PathContentProvider;
|
||||
import org.eclipse.jetty.http.HttpHeader;
|
||||
import org.eclipse.jetty.http.HttpMethod;
|
||||
import org.eclipse.jetty.server.HttpConfiguration;
|
||||
import org.eclipse.jetty.server.HttpConnectionFactory;
|
||||
import org.eclipse.jetty.server.MultiPartFormDataCompliance;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.ServerConnector;
|
||||
import org.eclipse.jetty.server.handler.DefaultHandler;
|
||||
|
@ -166,7 +169,9 @@ public class HugeResourceTest
|
|||
public void startServer() throws Exception
|
||||
{
|
||||
server = new Server();
|
||||
ServerConnector connector = new ServerConnector(server);
|
||||
HttpConfiguration httpConfig = new HttpConfiguration();
|
||||
httpConfig.setMultiPartFormDataCompliance(MultiPartFormDataCompliance.RFC7578);
|
||||
ServerConnector connector = new ServerConnector(server, new HttpConnectionFactory(httpConfig));
|
||||
connector.setPort(0);
|
||||
server.addConnector(connector);
|
||||
|
||||
|
|
Loading…
Reference in New Issue