flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1156889 - /incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java
Date Fri, 12 Aug 2011 00:47:21 GMT
Author: esammer
Date: Fri Aug 12 00:47:21 2011
New Revision: 1156889

URL: http://svn.apache.org/viewvc?rev=1156889&view=rev
Log:
- Removed interrupted start test. Can't reliably know we're going to block during the start
method.

Modified:
    incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java?rev=1156889&r1=1156888&r2=1156889&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/core/TestLogicalNode.java
Fri Aug 12 00:47:21 2011
@@ -51,28 +51,6 @@ public class TestLogicalNode {
   }
 
   @Test
-  public void testInterruptStart() throws LifecycleException,
-      InterruptedException {
-    Context context = new Context();
-
-    Thread.currentThread().interrupt();
-    node.start(context);
-    boolean reached = LifecycleController.waitForOneOf(node,
-        new LifecycleState[] { LifecycleState.START, LifecycleState.ERROR },
-        5000);
-
-    Assert.assertTrue("Matched a lifecycle state", reached);
-    Assert.assertEquals(LifecycleState.START, node.getLifecycleState());
-
-    node.stop(context);
-    reached = LifecycleController.waitForOneOf(node, new LifecycleState[] {
-        LifecycleState.STOP, LifecycleState.ERROR }, 5000);
-
-    Assert.assertTrue("Matched a lifecycle state", reached);
-    Assert.assertEquals(LifecycleState.STOP, node.getLifecycleState());
-  }
-
-  @Test
   public void testMultipleNodes() throws LifecycleException,
       InterruptedException {
 



Mime
View raw message