-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fix NullPointerException and Incorrect Mocking in DefaultBranchBuildStatusProbeTest #577
base: main
Are you sure you want to change the base?
Fix NullPointerException and Incorrect Mocking in DefaultBranchBuildStatusProbeTest #577
Conversation
I'm sorry but I fail to see what you bring on top of the pull request #422. Have you simply copy the code from that pull request? You should have made a pull request which would have fixed that one, to acknowledge the work of the other contributor from that other pull request. |
hey @alecharp, |
Hi @MurtazaSaherwala no worries, but could you please at least update the description of this PR to credit the original author of #422? Also, explain your motivation to replace that PR with this since that one has become stale in the description. Without these it would not be appropriate. |
I have to admit that I'm puzzled by this. The branch used for #422 is still up on @AayushSaini101 repository, you could have use his repository as a remote, fetch the objects from it, checkout the branch create your own from that, add your commits and create a pull request from that new branch. This would have been better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution, @MurtazaSaherwala. 🙏
I agree with Adrien on this matter. We should definitely acknowledge the author of the original source code. There are a couple of methods we could consider for this acknowledgment:
One option would be to create a PR targeting the branch of the first PR's author. However, there's a risk that the author might not respond, especially since his original PR seems to have become stale.
Another approach, as suggested by Adrien, involves adding the first PR author's repository as a remote and building from there.
Admittedly, I'm not a Git expert, but Adrien is. I believe that together, we can guide you in proposing a new PR based on the initial author's PR.
Does that sound good to you?
|
@MurtazaSaherwala do you think you have time to follow the provided instructions to finish your pull request? |
Description
This pull request addresses the issue of
NullPointerException
occurring during the execution ofDefaultBranchBuildStatusProbeTest
. The issue arose due to improper mocking of nested calls in the test setup, particularly involvingPagedIterable
and its iterator(). The changes ensure proper mocking and setup for all dependencies, ensuring stable and accurate test execution.Closes #363
Testing done
Submitter checklist