Author: markt
Date: Thu Jan 12 12:27:06 2017
New Revision: 1778424
URL: http://svn.apache.org/viewvc?rev=1778424&view=rev
Log:
More robustness for the CI systems
Modified:
tomcat/trunk/test/org/apache/coyote/http2/TestAbortedUpload.java
Modified: tomcat/trunk/test/org/apache/coyote/http2/TestAbortedUpload.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestAbortedUpload.java?rev=1778424&r1=1778423&r2=1778424&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http2/TestAbortedUpload.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http2/TestAbortedUpload.java Thu Jan 12
12:27:06 2017
@@ -68,9 +68,13 @@ public class TestAbortedUpload extends H
// data is transferred in StreamInputBuffer inBuffer to outBuffer on
the
// first read.
while (output.getTrace().length() == 0) {
- parser.readFrame(true);
- if ("3-RST-[3]\n".equals(output.getTrace())) {
- output.clearTrace();
+ try {
+ parser.readFrame(true);
+ if ("3-RST-[3]\n".equals(output.getTrace())) {
+ output.clearTrace();
+ }
+ } catch (IOException ioe) {
+ // Might not be any further frames after the reset
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]