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

Testing: Ensure RepeatOnException rule is available in test-jar #9675

Conversation

spinscale
Copy link
Contributor

This moves the rule, so it is made available in the test.jar. In
addition, you can now specify the exception, which triggers a rerun
of the test in order to make it more usable for others.

Also ensured that the NettyTransportTest frees all resources inside
of its testing method instead of pre/post running methods, as those
are still called only once.

} catch (Throwable t) {
if (t.getClass().equals(expectedException)) {
caughtThrowable = t;
logger.info("Bind exception occurred, rerunning the test after [{}] failures", t, i+1);
Copy link
Member

Choose a reason for hiding this comment

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

is this still a bind exception all the time? If not we should update the error message

@javanna
Copy link
Member

javanna commented Feb 12, 2015

LGTM besides the small comment I left

@javanna javanna removed the review label Feb 12, 2015
This moves the rule, so it is made available in the test.jar. In
addition, you can now specify the exception, which triggers a rerun
of the test in order to make it reusable for others.

Also ensured that the NettyTransportTest frees all resources inside
of its testing method instead of pre/post running methods, as those
are still called only once, even though a failed test might be repeated.
@spinscale spinscale added the >test Issues or PRs that are addressing/adding tests label Feb 12, 2015
@spinscale spinscale force-pushed the 1502-testing-ensure-threadpool-shutdown-on-failure branch from a35f873 to ce24e10 Compare February 12, 2015 14:18
@spinscale spinscale merged commit ce24e10 into elastic:master Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.4.4 v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants