Author: borges
Date: 2011-10-07 08:25:03 -0400 (Fri, 07 Oct 2011)
New Revision: 11493
Modified:
trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java
Log:
Add number of open files to failure message
Modified: trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java
===================================================================
--- trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java 2011-10-07
09:37:56 UTC (rev 11492)
+++ trunk/hornetq-core/src/test/java/org/hornetq/tests/util/UnitTestCase.java 2011-10-07
12:25:03 UTC (rev 11493)
@@ -968,8 +968,9 @@
if (AsynchronousFileImpl.getTotalMaxIO() != 0)
{
+ int totalMaxAIO = AsynchronousFileImpl.getTotalMaxIO();
AsynchronousFileImpl.resetMaxAIO();
- Assert.fail("test did not close all its files " +
AsynchronousFileImpl.getTotalMaxIO());
+ Assert.fail("test did not close all its files " + totalMaxAIO);
}
// We shutdown the global pools to give a better isolation between tests
Show replies by date