Make TestFSTableDescriptors pass if cache hits are >= rather than ==; I had test the wrong way around
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1146942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
192539460a
commit
cdc62bf6ed
|
@ -112,10 +112,12 @@ public class TestFSTableDescriptors {
|
|||
assertTrue(htds.get(Bytes.toBytes(name + i)) != null);
|
||||
}
|
||||
assertEquals(count * 4, htds.invocations);
|
||||
assertTrue(count * 2 >= htds.cachehits);
|
||||
assertTrue("expected=" + (count * 2) + ", actual=" + htds.cachehits,
|
||||
htds.cachehits >= (count * 2));
|
||||
assertTrue(htds.get(HConstants.ROOT_TABLE_NAME) != null);
|
||||
assertEquals(htds.invocations, count * 4 + 1);
|
||||
assertTrue(htds.cachehits >= count * 2 + 1);
|
||||
assertTrue("expected=" + ((count * 2) + 1) + ", actual=" + htds.cachehits,
|
||||
htds.cachehits >= ((count * 2) + 1));
|
||||
}
|
||||
|
||||
@Test (expected=java.io.FileNotFoundException.class)
|
||||
|
|
Loading…
Reference in New Issue