-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(tests_integration): one to many network config #2253
base: main
Are you sure you want to change the base?
Conversation
0de0019
to
14e61a1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2253 +/- ##
==========================================
- Coverage 40.10% 36.70% -3.40%
==========================================
Files 26 277 +251
Lines 1895 31757 +29862
Branches 1895 31757 +29862
==========================================
+ Hits 760 11657 +10897
- Misses 1100 19090 +17990
- Partials 35 1010 +975 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @alonh5, @eitanm-starkware, and @yair-starkware)
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
} pub fn create_one_to_many_network_configs<const N: usize>() -> (NetworkConfig, Vec<NetworkConfig>) {
Rename to create_connected_network_configs
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
} pub fn create_one_to_many_network_configs<const N: usize>() -> (NetworkConfig, Vec<NetworkConfig>) {
Consider returning [NetworkConfig; N] instead of vec
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
} pub fn create_one_to_many_network_configs<const N: usize>() -> (NetworkConfig, Vec<NetworkConfig>) {
Return just a container of network configs instead (decrease N by 1). There's no need to split between the first one and the rest
crates/papyrus_network/src/network_manager/test_utils.rs
line 180 at r1 (raw file):
} pub fn create_network_config_connected_to_broadcast_channels<const N: usize, T>(
Revert the changes to this function. This function is used to check that messages were sent or to send messages, and for that we only need 2 peers
14e61a1
to
7e53a63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @alonh5, @eitanm-starkware, and @ShahakShama)
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
Previously, ShahakShama wrote…
Rename to create_connected_network_configs
Done.
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
Previously, ShahakShama wrote…
Consider returning [NetworkConfig; N] instead of vec
It's hard because NetworkConfig
doesn't implement Copy so you can't initialize an array
crates/papyrus_network/src/network_manager/test_utils.rs
line 151 at r1 (raw file):
Previously, ShahakShama wrote…
Return just a container of network configs instead (decrease N by 1). There's no need to split between the first one and the rest
done
crates/papyrus_network/src/network_manager/test_utils.rs
line 180 at r1 (raw file):
Previously, ShahakShama wrote…
Revert the changes to this function. This function is used to check that messages were sent or to send messages, and for that we only need 2 peers
I need to keep this check and also create another sequencer, so I need 3 peers
No description provided.