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

fix(tests/befp): fix panic in befp test #3108

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Jan 17, 2024

ShareWithProofs collection happens async and it does not guarantee that Shares at index [1] will be non-nil. Panic happened in incorrect share with Proof when befp.Shares[1] == nil

tested with go test -v -count=300 -run ^TestBEFP_Validate$ github.com/celestiaorg/celestia-node/share/eds/byzantine

@vgonkivs vgonkivs added kind:testing Related to unit tests kind:fix Attached to bug-fixing PRs flakiness labels Jan 17, 2024
@vgonkivs vgonkivs self-assigned this Jan 17, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (65c6b65) 51.08% compared to head (d48875e) 51.27%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3108      +/-   ##
==========================================
+ Coverage   51.08%   51.27%   +0.18%     
==========================================
  Files         177      177              
  Lines       11157    11157              
==========================================
+ Hits         5700     5721      +21     
+ Misses       4958     4939      -19     
+ Partials      499      497       -2     

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

@ramin ramin enabled auto-merge (squash) January 19, 2024 10:16
@ramin ramin merged commit ba38009 into celestiaorg:main Jan 19, 2024
17 of 19 checks passed
renaynay pushed a commit that referenced this pull request Jan 23, 2024
ShareWithProofs collection happens async and it does not guarantee that
Shares at index [1] will be non-nil. Panic happened in `incorrect share
with Proof` when `befp.Shares[1] == nil`

tested with `go test -v -count=300 -run ^TestBEFP_Validate$
github.com/celestiaorg/celestia-node/share/eds/byzantine`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flakiness kind:fix Attached to bug-fixing PRs kind:testing Related to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants