Skip to content

Testing: Add test rule to repeat tests on binding exceptions#9527

Merged
spinscale merged 1 commit intoelastic:masterfrom
spinscale:1502-repeat-netty-tests-on-bind-exception
Feb 9, 2015
Merged

Testing: Add test rule to repeat tests on binding exceptions#9527
spinscale merged 1 commit intoelastic:masterfrom
spinscale:1502-repeat-netty-tests-on-bind-exception

Conversation

@spinscale
Copy link
Copy Markdown
Contributor

Due to the possibility of ports being already used when choosing a
random port, it makes sense to simply repeat a unit test upon a bind
exception.

This commit adds a junit rule, which does exactly this and does not
require you to change the test code and add loops.

Closes #9010

@spinscale spinscale added review >test Issues or PRs that are addressing/adding tests v2.0.0-beta1 v1.5.0 v1.4.4 and removed v1.4.4 labels Feb 2, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Override?

@rjernst
Copy link
Copy Markdown
Member

rjernst commented Feb 2, 2015

LGTM, just a couple minor comments.

@spinscale spinscale force-pushed the 1502-repeat-netty-tests-on-bind-exception branch 2 times, most recently from cd31cc8 to 86ce3a9 Compare February 3, 2015 07:12
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

occurred with 2 Rs :)

@spinscale spinscale force-pushed the 1502-repeat-netty-tests-on-bind-exception branch from 86ce3a9 to db04c17 Compare February 9, 2015 09:35
Due to the possibility of ports being already used when choosing a
random port, it makes sense to simply repeat a unit test upon a bind
exception.

This commit adds a junit rule, which does exactly this and does not
require you to change the test code and add loops.

Closes elastic#9010
@spinscale spinscale force-pushed the 1502-repeat-netty-tests-on-bind-exception branch from db04c17 to 98a2482 Compare February 9, 2015 10:18
@spinscale spinscale merged commit 98a2482 into elastic:master Feb 9, 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.3 v1.5.0 v2.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI failure] NettyTransportMultiPortTests Address already in use

4 participants