Skip to content

Commit

Permalink
Exclude status example test for status 171 depending on JDK version (#58
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tjquinno authored Jul 2, 2024
1 parent bf63544 commit 741e005
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 741e005

Please sign in to comment.