Skip to content

Commit

Permalink
Fix shared_object_sync test (MystenLabs#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Jun 15, 2022
1 parent 1f87d13 commit ea0c9ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/test-utils/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ pub fn test_authority_configs() -> NetworkConfig {
let rng = StdRng::from_seed([0; 32]);
let mut configs = NetworkConfig::generate_with_rng(&config_dir, TEST_COMMITTEE_SIZE, rng);
for config in configs.validator_configs.iter_mut() {
// Disable gossip by default to reduce non-determinism.
// TODO: Once this library is more broadly used, we can make this a config argument.
config.enable_gossip = false;

let parameters = &mut config.consensus_config.as_mut().unwrap().narwhal_config;
// NOTE: the following parameters are important to ensure tests run fast. Using the default
// Narwhal parameters may result in tests taking >60 seconds.
Expand Down

0 comments on commit ea0c9ec

Please sign in to comment.