diff --git a/rust/connlib/snownet/src/node.rs b/rust/connlib/snownet/src/node.rs index 8025fc25a..d3effd9ae 100644 --- a/rust/connlib/snownet/src/node.rs +++ b/rust/connlib/snownet/src/node.rs @@ -543,7 +543,7 @@ where .initial .iter() .filter_map(|(id, conn)| { - (now.duration_since(conn.created_at) >= Duration::from_secs(10)).then_some(*id) + (now.duration_since(conn.created_at) >= Duration::from_secs(20)).then_some(*id) }) .collect::>(); diff --git a/rust/connlib/snownet/tests/lib.rs b/rust/connlib/snownet/tests/lib.rs index 674e1b20b..81a2a8700 100644 --- a/rust/connlib/snownet/tests/lib.rs +++ b/rust/connlib/snownet/tests/lib.rs @@ -14,7 +14,7 @@ fn connection_times_out_after_10_seconds() { ClientNode::::new(StaticSecret::random_from_rng(rand::thread_rng()), start); let _ = alice.new_connection(1, HashSet::new(), HashSet::new()); - alice.handle_timeout(start + Duration::from_secs(10)); + alice.handle_timeout(start + Duration::from_secs(20)); assert_eq!(alice.poll_event().unwrap(), Event::ConnectionFailed(1)); }