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 2012/03/28 22:36:03 UTC

svn commit: r1306580 - /tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java

Author: markt
Date: Wed Mar 28 20:36:02 2012
New Revision: 1306580

URL: http://svn.apache.org/viewvc?rev=1306580&view=rev
Log:
Tweak the test so it can easily be run multiple times in a row without failing.

Modified:
    tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java

Modified: tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java?rev=1306580&r1=1306579&r2=1306580&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java (original)
+++ tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java Wed Mar 28 20:36:02 2012
@@ -171,10 +171,11 @@ public class TestRegistration extends To
         } else {
             protocol = "bio";
         }
+        String index = getTomcatInstance().getConnector().getProperty("nameIndex").toString();
         ArrayList<String> expected = new ArrayList<String>(Arrays.asList(basicMBeanNames()));
         expected.addAll(Arrays.asList(hostMBeanNames("localhost")));
         expected.addAll(Arrays.asList(contextMBeanNames("localhost", contextName)));
-        expected.addAll(Arrays.asList(connectorMBeanNames("auto-1", protocol)));
+        expected.addAll(Arrays.asList(connectorMBeanNames("auto-" + index, protocol)));
         expected.addAll(Arrays.asList(optionalMBeanNames("localhost")));
 
         // Did we find all expected MBeans?



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