diff --git a/neqo-transport/src/connection/tests/idle.rs b/neqo-transport/src/connection/tests/idle.rs index deb4312dca..afe81eb9c5 100644 --- a/neqo-transport/src/connection/tests/idle.rs +++ b/neqo-transport/src/connection/tests/idle.rs @@ -53,6 +53,13 @@ fn test_idle_timeout(client: &mut Connection, server: &mut Connection, timeout: assert!(matches!(client.state(), State::Closed(_))); } +#[test] +fn init_rtt_configuration() { + const CUSTOM_INIT_RTT: Duration = Duration::from_millis(200); + let client = new_client(ConnectionParameters::default().initial_rtt(CUSTOM_INIT_RTT)); + assert_eq!(client.conn_params.get_initial_rtt(), CUSTOM_INIT_RTT); +} + #[test] fn idle_timeout() { let mut client = default_client();