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

Exclude status example test for status 171 depending on JDK version #58

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Jul 1, 2024

Resolves helidon-io/helidon#8834

As @tomas-langer noted

https://github.com/helidon-io/helidon/blob/966c7f3d02f8cdbb706f76fb7fb9614f8ea1c4bc/examples/microprofile/http-status-count-mp/src/test/java/io/helidon/examples/mp/httpstatuscount/StatusTest.java#L58-L59

the offending test request does not work with JDK 20 and higher.

This PR adds a bit of logic to retrieve the current JDK version and exclude the offending request for JDK 20 and higher.

With that change, the test works correctly with JDK 17 and 21.

@tjquinno tjquinno self-assigned this Jul 1, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 1, 2024
@tjquinno tjquinno merged commit 741e005 into helidon-3.x Jul 2, 2024
6 checks passed
@tjquinno tjquinno deleted the 3.x-status-example branch July 2, 2024 14:01
barchetta pushed a commit to barchetta/helidon-examples that referenced this pull request Jul 8, 2024
@barchetta barchetta mentioned this pull request Jul 8, 2024
barchetta added a commit that referenced this pull request Jul 8, 2024
* Exclude status example test for status 171 depending on JDK version (#58)
* 3.x: Handle TMPDIR not being set (#48)

---------

Co-authored-by: Tim Quinn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.x: examples.mp.httpstatuscount.StatusTest test hangs on Java 21
2 participants