Repository: incubator-slider
Updated Branches:
  refs/heads/develop 2bbaafd5d -> 6b011d925


SLIDER-455 TestStandaloneAMMonkeyRestart test failure


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/0b1ff8e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/0b1ff8e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/0b1ff8e1

Branch: refs/heads/develop
Commit: 0b1ff8e142218a60843697681a7d1419a324f7f8
Parents: 2bbaafd
Author: Steve Loughran <[email protected]>
Authored: Wed Oct 1 14:50:43 2014 -0700
Committer: Steve Loughran <[email protected]>
Committed: Wed Oct 1 14:50:43 2014 -0700

----------------------------------------------------------------------
 .../standalone/TestStandaloneAMMonkeyRestart.groovy     | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/0b1ff8e1/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
----------------------------------------------------------------------
diff --git 
a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
 
b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
index b37b9a6..5136092 100644
--- 
a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
+++ 
b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
@@ -59,13 +59,11 @@ class TestStandaloneAMMonkeyRestart extends 
AgentMiniClusterTestBase {
     ApplicationReport report
     report = waitForClusterLive(sliderClient, 30000)
     describe "Waiting for the cluster to fail"
-    sleep(40000)
-    // end of process
-    report = sliderClient.applicationReport
-    log.info(report.diagnostics)
-    assert report.currentApplicationAttemptId.attemptId == threshold
-    assert YarnApplicationState.FAILED == report.yarnApplicationState  
-    assert FinalApplicationStatus.FAILED == report.finalApplicationStatus
+    def finishedReport = waitForAppToFinish(sliderClient, 90000)
+    log.info(finishedReport.diagnostics)
+    assert finishedReport.currentApplicationAttemptId.attemptId == threshold
+    assert YarnApplicationState.FAILED == finishedReport.yarnApplicationState  
+    assert FinalApplicationStatus.FAILED == 
finishedReport.finalApplicationStatus
   }
 
   /**

Reply via email to