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

hack: 😴 sleep enough for cli debug subcommands to broadcast #954

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

0xBigBoss
Copy link
Member

When running commands like p1 dui TriggerNextView, seems the program exits faster than the p2p module can broadcast. This PR introduces a magic number to give the p2p module enough time to broadcast the debug messages when run as a subcommand.

This is working for my e2e testing for now.

@0xBigBoss 0xBigBoss self-assigned this Jul 31, 2023
@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels Jul 31, 2023
Copy link
Member

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

@0xBigBoss I have a similar hack for this in #874, so would appreciate if you review that as well.

Feel free to merge this in to unblock main in the meantime.

Screenshot 2023-07-31 at 9 46 50 AM

app/client/cli/debug.go Outdated Show resolved Hide resolved
Co-authored-by: Daniel Olshansky <[email protected]>
@0xBigBoss 0xBigBoss merged commit bec10d9 into main Jul 31, 2023
9 checks passed
@0xBigBoss 0xBigBoss deleted the 0xbigboss/fix-debug-cli-broadcast branch July 31, 2023 22:42
red-0ne pushed a commit that referenced this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Pull request is small waiting-for-review
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants