Closed hemanthrough closed 9 months ago
Hi @rohanKanojia
I tested locally by updating mockwebserver to 4.8.0. The test cases seems to go through. I tested the same in a sample project. The sample seems to work fine. I also tested in kubernetes-client-mock the test seems to go through.
However I am not very sure if this might break anything.
I could raise a PR for the same.
Hi any update on this?
ah, sorry. No update. Is this change really needed?
Hi, yes it would be good to have 4.9.0. I am using 4.9.0 okhttp in my project and when I try to run test with your library I am getting an error java.lang.NoSuchMethodError: No static method initializeInstanceForTests()V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' because 4.9.0 does not contain this code.
Yes I face similar issues as well. I had to downgrade my okhttp version due to this Issue
I had to updated the dependencies for myself. Happy to raise a PR if helpful. https://github.com/snodnipper/mockwebserver/tree/f92f50e7e0513f7188f2078f168ec2c25c8db28b
@snodnipper : Thanks for sharing, I think you can go ahead and create a PR. I think we should be able to cut a 4.x release based on 4.x version of okhttp
Could you also update the version with okhttp3 to 3.14.9? It is crashing with latest okhttp3
Never mind, importing mock web server 4.9.1 fixes the issue.
Any updates on this please? Would be great to have an official version with OkHttp v4 (e.g. 4.9.1) rather than have to fork, update and manage ourselves etc.
@hemanthrough : Hi, Would you like to submit a PR for this? Isn't okhttp 4.x versions based in kotlin? Do you think that can break some stuff?