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 1369 #1397

Merged
merged 1 commit into from
Jan 25, 2022
Merged

fix 1369 #1397

merged 1 commit into from
Jan 25, 2022

Conversation

willeslau
Copy link
Contributor

@willeslau willeslau commented Jan 25, 2022

Summary of changes
This is to fix the issue #1369, a test case issue.
This test fails randomly because in optimal message selection, there is a shuffling at L373. Further at line L412, there is a trim message chain operation. When performing trim_msgs_at and deriving the prev, when idx == 0, prev should equal to None, but instead returned from the function. By chance that the caller passes idx == 0 to the function, then the chain is not trimed and should have valid being false but instead true.

Reference issue to close (if applicable)

Closes #1369

Other information and links

@noot noot merged commit dd2a402 into ChainSafe:main Jan 25, 2022
@willeslau willeslau deleted the fix-issue-1369 branch January 26, 2022 00:50
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.

fix flaky unit test test_optimal_message_selection3
3 participants