-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixed crash in the memcached servers selector when there's only 1 server #1975
Fixed crash in the memcached servers selector when there's only 1 server #1975
Conversation
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
actualAddr, err := s.PickServer(test.key) | ||
|
||
if test.expectedErr != nil { | ||
testutil.NotOk(t, err) |
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.
We forgot to check that err
is equal to test.expectedErr
here :P
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 noticing it! Fixed
Signed-off-by: Marco Pracucci <marco@pracucci.com>
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 this quick fix! ❤️ Will release -rc.1
tomorrow 😄
Thanks for this quick reaction ❤️ |
…ver (thanos-io#1975) * Fixed crash in the memcached servers selector when there's only 1 server Signed-off-by: Marco Pracucci <marco@pracucci.com> * Updated changelog Signed-off-by: Marco Pracucci <marco@pracucci.com> * Assert expected error in tests Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Fixed crash in the memcached servers selector when there's only 1 server (#1975) * Fixed crash in the memcached servers selector when there's only 1 server Signed-off-by: Marco Pracucci <marco@pracucci.com> * Updated changelog Signed-off-by: Marco Pracucci <marco@pracucci.com> * Assert expected error in tests Signed-off-by: Marco Pracucci <marco@pracucci.com> * *: update everything for 0.10.0-rc.1 Update the version strings before the `0.10.0-rc.1` release. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> Co-authored-by: Marco Pracucci <marco@pracucci.com>
Fixes #1974
Verification
Unit tests.