Better message on assertion failure (looking at logs, this test should have passed)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-10-12 13:47:57 +00:00
parent 5ccf27683b
commit fc32ccdb2b
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ public class TestMergeTable {
MetaReader.getTableRegions(ct, desc.getName()); MetaReader.getTableRegions(ct, desc.getName());
LOG.info("postMergeTableRegions size=" + postMergeTableRegions.size() + LOG.info("postMergeTableRegions size=" + postMergeTableRegions.size() +
"; " + postMergeTableRegions); "; " + postMergeTableRegions);
assertTrue(postMergeTableRegions.size() < originalTableRegions.size()); assertTrue("originalTableRegions=" + originalTableRegions.size() +
", postMergeTableRegions=" + postMergeTableRegions.size(),
postMergeTableRegions.size() < originalTableRegions.size());
} finally { } finally {
UTIL.shutdownMiniCluster(); UTIL.shutdownMiniCluster();
} }