[embjopr-commits] EMBJOPR SVN: r913 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/connfactories.
embjopr-commits at lists.jboss.org
embjopr-commits at lists.jboss.org
Thu Apr 8 08:27:59 EDT 2010
Author: ozizka at redhat.com
Date: 2010-04-08 08:27:59 -0400 (Thu, 08 Apr 2010)
New Revision: 913
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/connfactories/ConnFactoryMetricsTest.java
Log:
* ConnFactory test fixed - statistics criteria relaxed.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/connfactories/ConnFactoryMetricsTest.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/connfactories/ConnFactoryMetricsTest.java 2010-04-07 14:54:52 UTC (rev 912)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/connfactories/ConnFactoryMetricsTest.java 2010-04-08 12:27:59 UTC (rev 913)
@@ -238,8 +238,8 @@
// Set up the expected values
Map<String, String> expectedMetrics = new LinkedHashMap<String, String>();
expectedMetrics.put(AVAILABLE_CONNECTION_COUNT, "14");
- expectedMetrics.put(CONNECTION_COUNT, REGEX_PREFIX+"(6|7|8)");
- expectedMetrics.put(CONNECTION_CREATED_COUNT, "6");
+ expectedMetrics.put(CONNECTION_COUNT, REGEX_PREFIX + "(6|7|8)");
+ expectedMetrics.put(CONNECTION_CREATED_COUNT, REGEX_PREFIX + "(6|7|8)");
expectedMetrics.put(CONNECTION_DESTROYED_COUNT, "0");
expectedMetrics.put(IN_USE_CONNECTION_COUNT, "6");
//expectedMetrics.put(MAX_CONNECTIONS_IN_USE_COUNT, "6"); // Was causing transient failures (sometimes old connections were counted).
@@ -328,7 +328,7 @@
// Set up the expected values
Map<String, String> expectedMetrics = new LinkedHashMap<String, String>();
expectedMetrics.put(AVAILABLE_CONNECTION_COUNT, "12");
- expectedMetrics.put(CONNECTION_COUNT, "10");
+ expectedMetrics.put(CONNECTION_COUNT, REGEX_PREFIX + "1[01]");
expectedMetrics.put(CONNECTION_CREATED_COUNT, "10");
expectedMetrics.put(CONNECTION_DESTROYED_COUNT, "0");
expectedMetrics.put(IN_USE_CONNECTION_COUNT, "8");
More information about the embjopr-commits
mailing list