Skip to content

Commit

Permalink
very basic test for initial rtt configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Nov 11, 2024
1 parent 8a1fe08 commit 1bc2aa6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions neqo-transport/src/connection/tests/idle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1bc2aa6

Please sign in to comment.