Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #568 Untrack Artemis test instance data #569

Merged
merged 1 commit into from Dec 21, 2019
Merged

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented Dec 21, 2019

No description provided.

@@ -41,14 +42,16 @@ public void inject(Object testInstance) {
@Override
public Map<String, String> start() {
try {
FileUtils.deleteDirectory(Paths.get("./target/artemis").toFile());
final File dataDirectory = Paths.get("./target/artemis").toFile();
FileUtils.deleteDirectory(dataDirectory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn’t this be done also when the test ends?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reason for keeping it after the test could be that sometimes it is handy to be able to inspect the state of a directory like this after the test.

Any reasons for removing it after the test?

@lburgazzoli lburgazzoli merged commit d5c0215 into apache:master Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants