Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR to see if I can figure out the hanging tests issues on Travis.
I can't reproduce the same issue locally. However what I am seeing on my machine is that tests sometimes fail due to an
java.lang.RuntimeException: java.net.BindException: Address already in use: bind
exception.After
server.stop()
, theINET_PORT
remains in aTIME_WAIT
state it seems .Adding a short
Thread.sleep()
after stopping or awhile(available(INET_PORT)) Thread.sleep(500);
whereavailable
is something like this: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java?view=markup#l130 fixes the issue on my machine.No sure idea if this is related to the hanging SSE tests though.