mirror of https://github.com/apache/nifi.git
NIFI-2092 Fixing unit tests which try to clean up directories before stopping the FlowController that has locks opened.
This closes #568
This commit is contained in:
parent
fd5327e1b9
commit
f0662a24ef
|
@ -91,9 +91,9 @@ public class TestProcessorLifecycle {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void after() throws Exception {
|
public void after() throws Exception {
|
||||||
|
fc.shutdown(true);
|
||||||
FileUtils.deleteDirectory(new File("./target/test-repo"));
|
FileUtils.deleteDirectory(new File("./target/test-repo"));
|
||||||
FileUtils.deleteDirectory(new File("./target/content_repository"));
|
FileUtils.deleteDirectory(new File("./target/content_repository"));
|
||||||
fc.shutdown(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -51,9 +51,9 @@ public class MonitorMemoryTest {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void after() throws Exception {
|
public void after() throws Exception {
|
||||||
|
fc.shutdown(true);
|
||||||
FileUtils.deleteDirectory(new File("./target/test-repo"));
|
FileUtils.deleteDirectory(new File("./target/test-repo"));
|
||||||
FileUtils.deleteDirectory(new File("./target/content_repository"));
|
FileUtils.deleteDirectory(new File("./target/content_repository"));
|
||||||
fc.shutdown(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalStateException.class)
|
@Test(expected = IllegalStateException.class)
|
||||||
|
|
Loading…
Reference in New Issue