You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/06/02 07:08:49 UTC

[tomcat] branch 8.5.x updated: Fix failing test

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new dfa633aa4b Fix failing test
dfa633aa4b is described below

commit dfa633aa4b31ba3cca27f5e1d1880e202a04eaee
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jun 2 08:08:22 2023 +0100

    Fix failing test
---
 test/org/apache/catalina/valves/TestPersistentValve.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/org/apache/catalina/valves/TestPersistentValve.java b/test/org/apache/catalina/valves/TestPersistentValve.java
index 847f31454d..9cbd3cbd60 100644
--- a/test/org/apache/catalina/valves/TestPersistentValve.java
+++ b/test/org/apache/catalina/valves/TestPersistentValve.java
@@ -45,6 +45,9 @@ public class TestPersistentValve {
         pv.setContainer(request.getContext());
         pv.setNext(testerValve);
 
+        // Call the necessary lifecycle methods
+        pv.init();
+
         // Run the test
         Thread[] threads = new Thread[5];
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org