hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1146942 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java
Date Fri, 15 Jul 2011 02:36:31 GMT
Author: stack
Date: Fri Jul 15 02:36:31 2011
New Revision: 1146942

URL: http://svn.apache.org/viewvc?rev=1146942&view=rev
Log:
Make TestFSTableDescriptors pass if cache hits are >= rather than ==; I had test the wrong
way around

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java?rev=1146942&r1=1146941&r2=1146942&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java Fri
Jul 15 02:36:31 2011
@@ -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)



Mime
View raw message