Skip to content

tests: fix test_gossip_force_broadcast_channel_msgs flake - #9506

Open
daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_gossip_force_broadcast_channel_msgs
Open

daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_gossip_force_broadcast_channel_msgs

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

Changelog-None

Fixes: #9270

@Andezion Andezion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

as i see in the first gossipwith invocation, --max-messages and --timeout-after were both removed with nothing replacing them. I checked devtools/gossipwith.c with both flags at their defaults (max_messages = -1UL, timeout_after = -1), stream_stdin false, pollfd[0].fd is set to -1 up front, so the loop condition while (max_messages != 0 || pollfd[0].fd != -1) never becomes false and poll() blocks in definitely. so this gossipwith process now never exits on its own under normal test conditions? maybe we should add a time.sleep(some small value) followed by process.terminate()?

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.

CI Flake test_gossip_force_broadcast_channel_msgs

2 participants