Closed tomaszmichalak closed 5 years ago
Could you please attach the output of ./gradlew --version
?
Mystery more-less solved. Behavior seen here and in #32 is a byproduct of how free ports are currently being discovered/assigned.
Free port discovery is done through a third-party library (FreePortFinder
), which does it in a pretty weird way, but it makes sure the port is available with 100% certainty. But on WSL it has the tendency to crash JVM, as WSL is not a standard Linux environment. Fix would need to implement part of the functionality of this library (currently in progress).
Describe the bug Tests fails with
NoSuchElementException
when rungradlew build
on WSL. It looks that there is a problem with ports allocation. Full execution log:To Reproduce Steps to reproduce the behavior:
knotx-aggregator/development
./pull-all.sh -r {KNOTX_HOME_DIR} -b master -f
./pull-all.sh -r {KNOTX_HOME_DIR} -b master -f
or simply:
git clone git@github.com:Knotx/knotx-junit5.git
./gradlew build
Expected behavior Tests passses.