HBASE-8829 Improve failed TestMetaScanner assert message so can see where/why failure

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1497908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-06-28 20:20:56 +00:00
parent a0e51bc4da
commit fc471152da
1 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,8 @@ public class TestMetaScanner {
endKey = Bytes.toLong(hri.getEndKey());
}
LOG.info("start:" + startKey + " end:" + endKey + " hri:" + hri);
Assert.assertTrue(Bytes.equals(lastEndKey, hri.getStartKey()));
Assert.assertTrue("lastEndKey=" + Bytes.toString(lastEndKey) + ", startKey=" +
Bytes.toString(hri.getStartKey()), Bytes.equals(lastEndKey, hri.getStartKey()));
lastEndKey = hri.getEndKey();
}
Assert.assertTrue(Bytes.equals(lastEndKey, HConstants.EMPTY_END_ROW));