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

[TEST] Fix tests that rely on assumption that data dirs are removed after index deletion acknowledged #18681

Merged
merged 1 commit into from
Jun 1, 2016

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Jun 1, 2016

Relates to #18602

@ywelsch ywelsch added >bug >test Issues or PRs that are addressing/adding tests labels Jun 1, 2016
* Asserts that there are no files in the specified path
*/
public void assertPathHasBeenCleared(Path path) throws Exception {
public void assertPathHasBeenCleared(Path path) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this always used in an assertBusy context? wonder if we should add it here. This can be suprising...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the moment it's only used in these (few) integration tests. I was debating this as well, but I think the method is also useful in unit tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

we can maybe have an assertPathHasBeenCleared variant? then people will hopefully see both and choose :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean assertBusyPathHasBeenCleared?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, sorry.

@bleskes
Copy link
Contributor

bleskes commented Jun 1, 2016

I left one suggestion/question . Feel free to push if it doesn't makes sense.

@ywelsch ywelsch merged commit c20bf5d into elastic:master Jun 1, 2016
@ywelsch
Copy link
Contributor Author

ywelsch commented Jun 1, 2016

Thanks for reviewing @bleskes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants