diff --git a/etc/scripts/updatehelidonversion.sh b/etc/scripts/updatehelidonversion.sh index f06d53d8a..573c7d44e 100755 --- a/etc/scripts/updatehelidonversion.sh +++ b/etc/scripts/updatehelidonversion.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2022, 2023 Oracle and/or its affiliates. +# Copyright (c) 2022, 2024 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,6 +29,10 @@ if [ -z "${NEW_VERSION}" ]; then exit 1 fi +if [ -z "${TMPDIR}" ]; then + readonly TMPDIR="/tmp" +fi + readonly POM_FILES=$(find . -name pom.xml -print) for f in ${POM_FILES}; do diff --git a/examples/microprofile/http-status-count-mp/src/test/java/io/helidon/examples/mp/httpstatuscount/StatusTest.java b/examples/microprofile/http-status-count-mp/src/test/java/io/helidon/examples/mp/httpstatuscount/StatusTest.java index a124a1d3d..7d1db3321 100644 --- a/examples/microprofile/http-status-count-mp/src/test/java/io/helidon/examples/mp/httpstatuscount/StatusTest.java +++ b/examples/microprofile/http-status-count-mp/src/test/java/io/helidon/examples/mp/httpstatuscount/StatusTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Oracle and/or its affiliates. + * Copyright (c) 2022, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,7 +55,10 @@ void findStatusMetrics() { @Test void checkStatusMetrics() { - checkAfterStatus(171); + // intermediate responses are not "full" responses and since JDK 20 they are not returned by the client at all + if (Runtime.version().feature() < 20) { + checkAfterStatus(171); + } checkAfterStatus(200); checkAfterStatus(201); checkAfterStatus(204);