Author: markt
Date: Mon Apr 28 13:54:47 2014
New Revision: 1590638
URL: http://svn.apache.org/r1590638
Log:
Need even larger writes to keep test happy on Windows VM
Modified:
tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
Modified: tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java?rev=1590638&r1=1590637&r2=1590638&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java Mon
Apr 28 13:54:47 2014
@@ -40,16 +40,16 @@ import org.apache.tomcat.util.buf.ByteCh
public class TestCoyoteAdapter extends TomcatBaseTest {
- public static final String TEXT_1K;
- public static final byte[] BYTES_1K;
+ public static final String TEXT_8K;
+ public static final byte[] BYTES_8K;
static {
- StringBuilder sb = new StringBuilder(1024);
- for (int i = 0; i < 64; i++) {
+ StringBuilder sb = new StringBuilder(8192);
+ for (int i = 0; i < 512; i++) {
sb.append("0123456789ABCDEF");
}
- TEXT_1K = sb.toString();
- BYTES_1K = TEXT_1K.getBytes(StandardCharsets.UTF_8);
+ TEXT_8K = sb.toString();
+ BYTES_8K = TEXT_8K.getBytes(StandardCharsets.UTF_8);
}
@Test
public void testPathParmsRootNone() throws Exception {
@@ -360,7 +360,7 @@ public class TestCoyoteAdapter extends T
public void run() {
for (int i = 0; i < 20; i++) {
try {
- os.write(BYTES_1K);
+ os.write(BYTES_8K);
os.flush();
Thread.sleep(1000);
} catch (Exception e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]