From d15b793fafef81caf4b9c33fdbf558724ae3dee5 Mon Sep 17 00:00:00 2001 From: Tim Quinn Date: Mon, 1 Jul 2024 17:46:26 -0500 Subject: [PATCH] Exclude status example test for status 171 depending on JDK version --- .../io/helidon/examples/mp/httpstatuscount/StatusTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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);