You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jm...@apache.org on 2013/08/20 16:07:34 UTC

svn commit: r1515828 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java

Author: jmhsieh
Date: Tue Aug 20 14:07:33 2013
New Revision: 1515828

URL: http://svn.apache.org/r1515828
Log:
HBASE-9195 Fix TestFDHDFSUtils against java7 test re-ordering (Himanshu Vashishtha)

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java?rev=1515828&r1=1515827&r2=1515828&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java (original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java Tue Aug 20 14:07:33 2013
@@ -39,7 +39,6 @@ public class TestFSHDFSUtils {
   private static final HBaseTestingUtility HTU = new HBaseTestingUtility();
   static {
     Configuration conf = HTU.getConfiguration();
-    conf.setInt("hbase.lease.recovery.dfs.timeout", 1000);
     conf.setInt("hbase.lease.recovery.first.pause", 10);
     conf.setInt("hbase.lease.recovery.pause", 10);
   };
@@ -58,6 +57,7 @@ public class TestFSHDFSUtils {
    */
   @Test (timeout = 30000)
   public void testRecoverLease() throws IOException {
+    HTU.getConfiguration().setInt("hbase.lease.recovery.dfs.timeout", 1000);
     DistributedFileSystem dfs = Mockito.mock(DistributedFileSystem.class);
     // Fail four times and pass on the fifth.
     Mockito.when(dfs.recoverLease(FILE)).