Skip to content

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

Merged
0xBigBoss merged 2 commits intomainfrom
0xbigboss/fix-debug-cli-broadcast
Jul 31, 2023
Merged

hack: 😴 sleep enough for cli debug subcommands to broadcast#954
0xBigBoss merged 2 commits intomainfrom
0xbigboss/fix-debug-cli-broadcast

Conversation

@0xBigBoss
Copy link
Contributor

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
Collaborator

@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

Co-authored-by: Daniel Olshansky <[email protected]>
@0xBigBoss 0xBigBoss merged commit bec10d9 into main Jul 31, 2023
@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