tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1590638 - /tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
Date Mon, 28 Apr 2014 13:54:48 GMT
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message