dsoumis commented on code in PR #753: URL: https://github.com/apache/tomcat/pull/753#discussion_r1778454482
########## test/org/apache/catalina/valves/TestSSLValve.java: ########## @@ -314,12 +352,14 @@ public void testSslCipherUserKeySizeHeaderPresent() throws Exception { @Test(expected = NumberFormatException.class) public void testSslCipherUserKeySizeHeaderBadFormat() throws Exception { + setUp(); mockRequest.setHeader(valve.getSslCipherUserKeySizeHeader(), "not-an-integer"); try { valve.invoke(mockRequest, null); } catch (NumberFormatException e) { Assert.assertNull(mockRequest.getAttribute(Globals.KEY_SIZE_ATTR)); + mockRequest.setHeader(valve.getSslCipherUserKeySizeHeader(), null); Review Comment: Due to the random ordering of the execution of the tests, I had to reset the header at this point because other tests were throwing NumberFormatException. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org