-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: return error in LoadMatching
#8234
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
Conversation
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #8234 +/- ##
==========================================
+ Coverage 33.85% 33.89% +0.04%
==========================================
Files 260 260
Lines 23570 23570
==========================================
+ Hits 7980 7990 +10
+ Misses 14766 14759 -7
+ Partials 824 821 -3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Good catch, @vishal-chdhry! |
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.
Good catch !
BTW, it would be nice to have a test for that. This is not something we want to have regressions. |
this loader simulates an invalid loader, such as invalid API call URL or a bad request to external service Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
74b0bf4
@eddycharly Something like this: |
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.
Thanks for adding the test !
Explanation
Closes: #8008
I believe this should not return nil, as the value of
err
will be lost.