Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1862: tests: replace msg_queue with `Comm` r=joshuef a=RolandSherwin - **fix(network_builder): fix edge case while calculating max_prefixes** - When `max_bit_count == 0 (or) 1`, the logic for calculating the permutations failed, this fixes it. - **feat(test): synchronously send `NodeMsg` to other nodes** - This allows us to control the flow of msgs in certain tests allowing us to avoid using custom msg queues. - **refactor(test): pass `NodeMsgs` via the `Comm` module** - The dkg tests bypassed the `Comm` module and used a queue to pass along the `NodeMsgs` for testing. This was due to the fact that the msgs were sent asynchronously, preventing any control of the flow. - Hence using the test-only synchronous msg sender allows us to do the above without using any extra queues. Co-authored-by: RolandSherwin <RolandSherwin@protonmail.com>
- Loading branch information
Showing
5 changed files
with
451 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.