hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1549995 - /hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java
Date Tue, 10 Dec 2013 23:00:40 GMT
Author: apurtell
Date: Tue Dec 10 23:00:40 2013
New Revision: 1549995

URL: http://svn.apache.org/r1549995
Log:
Amend HBASE-10103. Fix testHealthCheckerTimeout and add default test timeouts

Modified:
    hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java

Modified: hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java?rev=1549995&r1=1549994&r2=1549995&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java
(original)
+++ hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/TestNodeHealthCheckChore.java
Tue Dec 10 23:00:40 2013
@@ -56,21 +56,21 @@ public class TestNodeHealthCheckChore {
     if (!fs.mkdirs(testDir)) throw new IOException("Failed mkdir " + testDir);
   }
 
-  @Test
+  @Test(timeout=60000)
   public void testHealthCheckerSuccess() throws Exception {
     String normalScript = "echo \"I am all fine\"";
     healthCheckerTest(normalScript, HealthCheckerExitStatus.SUCCESS);
   }
 
-  @Test
+  @Test(timeout=60000)
   public void testHealthCheckerFail() throws Exception {
     String errorScript = "echo ERROR" + eol + "echo \"Node not healthy\"";
     healthCheckerTest(errorScript, HealthCheckerExitStatus.FAILED);
   }
 
-  @Test
+  @Test(timeout=60000)
   public void testHealthCheckerTimeout() throws Exception {
-    String timeOutScript = "sleep " + (SCRIPT_TIMEOUT * 2) + eol + "echo \"I am fine\"";
+    String timeOutScript = "sleep 10" + eol + "echo \"I am fine\"";
     healthCheckerTest(timeOutScript, HealthCheckerExitStatus.TIMED_OUT);
   }
 
@@ -93,7 +93,7 @@ public class TestNodeHealthCheckChore {
     this.healthScriptFile.delete();
   }
 
-  @Test
+  @Test(timeout=60000)
   public void testRSHealthChore() throws Exception{
     Stoppable stop = new StoppableImplementation();
     Configuration conf = getConfForNodeHealthScript();



Mime
View raw message