Closed icarmon closed 2 years ago
Related to #3612
Thanks @rohanKanojia but I'm not sure it's related since it does compile & run on Java 17, it's just the tests that mock the server that fail. I also checked and it fails with Java 16.
@icarmon : oops, sorry my bad. So basically you're saying mockwebserver is crashing on jdk17, right?
when you say "it" what are you referring to (your personal project or kubernetes-client) ? We do have Kubernetes mockwebserver tests in kubernetes-tests/
module that are run in CI pipeline. While fixing build on JDK17 I thought we could also take a look at mockwebserver's behavior on JDK17
Thanks for pointing me to the tests directory, I compared it to my tests and found a solution.
In my tests the server was initialized this way:
@Rule public KubernetesServer kubernetesServer1 = new KubernetesServer();
I changed it to
public KubernetesMockServer kubernetesServer1 = new KubernetesMockServer();
And I no longer have the connection failures
I have a Java app using client version 4.13.3 and running on Java 14. I am trying to upgrade the app to Java 17 with no other changes and all tests mocking the K8s client are failing on these exceptions:
I couldn't find any compatibility requirements, tried with mockito versions 2.22.0 and 3.12.4 When running in local environment there are no issues, only when running the tests. I'll appreciate any suggestions