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

fsm: Don't ignore return value in fsm__apply. #434

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

MathieuBordere
Copy link
Contributor

@MathieuBordere MathieuBordere commented Nov 17, 2022

We were ignoring all apply_xxx return values except in the switch default: branch.

Signed-off-by: Mathieu Borderé mathieu.bordere@canonical.com

@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Merging #434 (67915a2) into master (fdf7742) will increase coverage by 0.14%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
+ Coverage   73.68%   73.83%   +0.14%     
==========================================
  Files          31       31              
  Lines        4682     4685       +3     
  Branches     1462     1467       +5     
==========================================
+ Hits         3450     3459       +9     
+ Misses        742      735       -7     
- Partials      490      491       +1     
Impacted Files Coverage Δ
src/fsm.c 71.05% <66.66%> (+1.90%) ⬆️
src/db.c 56.66% <0.00%> (-5.84%) ⬇️
src/transport.c 69.28% <0.00%> (-1.31%) ⬇️
src/leader.c 69.96% <0.00%> (-0.65%) ⬇️
src/gateway.c 59.56% <0.00%> (ø)
src/command.c 86.25% <0.00%> (+8.75%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MathieuBordere
Copy link
Contributor Author

I'll still try to add a test for this one, but it's a pretty obvious bug.

Copy link
Contributor

@cole-miller cole-miller left a comment

Choose a reason for hiding this comment

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

Good catch!

Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants