Skip to content

Commit

Permalink
Correct test. Exceeded the swallow limit aborts the connection.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1603775 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jun 19, 2014
1 parent e28dd57 commit c1357e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/org/apache/catalina/core/TestSwallowAbortedUploads.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,12 @@ public void doTestChunkedPUT(boolean limit) throws Exception {

if (limit) {
Assert.assertNotNull(writeEx);
Assert.assertNotNull(readEx);
} else {
Assert.assertNull(writeEx);
Assert.assertNull(readEx);
Assert.assertNotNull(responseLine);
Assert.assertTrue(responseLine.contains("404"));
}
Assert.assertNull(readEx);
Assert.assertNotNull(responseLine);
Assert.assertTrue(responseLine.contains("404"));
}
}

0 comments on commit c1357e6

Please sign in to comment.