SLIDER-622 add a second destroy operation after a sleep, may handle directory-not-deleted problems
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/34ac14f8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/34ac14f8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/34ac14f8 Branch: refs/heads/releases/slider-0.60 Commit: 34ac14f8a5f07371a136dcef6f28242f8081ef65 Parents: d84f83c Author: Steve Loughran <[email protected]> Authored: Mon Nov 10 22:06:45 2014 +0000 Committer: Steve Loughran <[email protected]> Committed: Mon Nov 10 22:48:10 2014 +0000 ---------------------------------------------------------------------- .../slider/agent/standalone/TestStandaloneAMDestroy.groovy | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/34ac14f8/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy index 6593a0e..4a94eb3 100644 --- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy @@ -115,6 +115,10 @@ class TestStandaloneAMDestroy extends AgentMiniClusterTestBase { int exitCode = sliderClient.actionDestroy(clustername); assert 0 == exitCode + sleep(1000) + // twice, not expecting an error the second time + exitCode = sliderClient.actionDestroy(clustername); + assert 0 == exitCode describe "post destroy checks" sliderFileSystem.verifyDirectoryNonexistent(instanceDir)
