Skip to content

Commit

Permalink
fix(network): increase timeout for discovery and broadcast test
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanm-starkware committed Aug 20, 2024
1 parent 1487474 commit e29e966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/papyrus_network/src/discovery/discovery_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async fn check_event_happens_after_given_duration(
behaviour: &mut Behaviour,
duration: Duration,
) -> ToSwarm<ToOtherBehaviourEvent, Void> {
const EPSILON_SLEEP: Duration = Duration::from_millis(1);
const EPSILON_SLEEP: Duration = Duration::from_millis(5);

// Check that there are no events until we sleep for enough time.
tokio::time::pause();
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_network/src/e2e_broadcast_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::network_manager::GenericNetworkManager;
use crate::sqmr;
use crate::sqmr::Bytes;

const TIMEOUT: Duration = Duration::from_secs(1);
const TIMEOUT: Duration = Duration::from_secs(5);

async fn create_swarm(bootstrap_peer_multiaddr: Option<Multiaddr>) -> Swarm<MixedBehaviour> {
let mut swarm = Swarm::new_ephemeral(|keypair| {
Expand Down

0 comments on commit e29e966

Please sign in to comment.