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

testutil/validatormock: error instead of panic #2349

Merged
merged 2 commits into from
Jun 22, 2023
Merged

Conversation

corverroos
Copy link
Contributor

Refactors validator mock logic to error when state already set (instead of panic). Also use explicit slot/poch to store stateful objects, rather then implicit "last slot" since out of order slot scheduling should cause problems.

category: test
ticket: #2347

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.12 ⚠️

Comparison is base (347a50a) 53.67% compared to head (eeceb3c) 53.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2349      +/-   ##
==========================================
- Coverage   53.67%   53.55%   -0.12%     
==========================================
  Files         192      192              
  Lines       25833    25864      +31     
==========================================
- Hits        13865    13851      -14     
- Misses      10250    10297      +47     
+ Partials     1718     1716       -2     
Impacted Files Coverage Δ
app/vmock.go 0.00% <0.00%> (ø)
testutil/validatormock/synccomm.go 3.01% <0.00%> (-0.17%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@dB2510 dB2510 left a comment

Choose a reason for hiding this comment

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

LGTM

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 22, 2023
@obol-bulldozer obol-bulldozer bot merged commit ccec444 into main Jun 22, 2023
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the corver/vmockrobust branch June 22, 2023 11:37
xenowits pushed a commit that referenced this pull request Jun 26, 2023
Refactors validator mock logic to error when state already set (instead of panic). Also use explicit slot/poch to store stateful objects, rather then implicit "last slot" since out of order slot scheduling should cause problems. 

category: test
ticket: #2347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants