Skip to content
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

5420 fix: [GOLIUM] Missing return value received when using slices.Delete #120

Conversation

ruben-garciad
Copy link
Contributor

@ruben-garciad ruben-garciad commented Dec 15, 2023

Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.

Please provide enough information so that others can review your pull request:

  • The value returned by slices.Delete has been assigned to the variable.
  • Some tests have been completed to verify that the messages have been consumed.
  • Added new tests.

Explain the details for making this change. What existing problem does the pull request solve?

When a message was consumed, it was removed from the slice but it still maintained the original length and, therefore, it could contain more elements than expected.

Fixes #119

@ruben-garciad ruben-garciad self-assigned this Dec 15, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (77eea8a) 63.42% compared to head (2f096ea) 63.42%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #120   +/-   ##
=======================================
  Coverage   63.42%   63.42%           
=======================================
  Files          48       48           
  Lines        3434     3434           
=======================================
  Hits         2178     2178           
  Misses       1188     1188           
  Partials       68       68           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Copy link
Member

@mariolg mariolg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mariolg mariolg merged commit 9d4a26e into master Dec 22, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Missing return value received when using slices.Delete
3 participants