-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Improve test coverage for MLHttpClientFactory.java #3644
[FEATURE] Improve test coverage for MLHttpClientFactory.java #3644
Conversation
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
linux (21) - Known flaky org.opensearch.ml.rest.RestMLRemoteInferenceIT.testPredictWithAutoDeployAndTTL_RemoteModel #3544 Windows (23) - This is a test only change, failures are not related to the code changes. |
Hi Maintainers, Any comments, please. |
Can you take updates from main? |
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Show resolved
Hide resolved
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Show resolved
Hide resolved
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
Done. |
ml-algorithms/src/test/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactoryTests.java
Outdated
Show resolved
Hide resolved
This PR is merged. Please rebase again. |
Ok, done. |
Improved the test coverage by adding edge cases. The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address. Resolves opensearch-project#1379 Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
Thanks @akolarkunnu for working on this. Merging the PR. |
Description
Improved the test coverage by adding edge cases.
The if check (bytes.length != 4) is an unreachable code, Inet4Address always will have array of 4 bytes address.
Related Issues
Resolves #1379
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.