Skip to content

Commit 1bc2aa6

Browse files
committed
very basic test for initial rtt configurability
1 parent 8a1fe08 commit 1bc2aa6

File tree

1 file changed

+7
-0
lines changed
  • neqo-transport/src/connection/tests

1 file changed

+7
-0
lines changed

neqo-transport/src/connection/tests/idle.rs

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ fn test_idle_timeout(client: &mut Connection, server: &mut Connection, timeout:
5353
assert!(matches!(client.state(), State::Closed(_)));
5454
}
5555

56+
#[test]
57+
fn init_rtt_configuration() {
58+
const CUSTOM_INIT_RTT: Duration = Duration::from_millis(200);
59+
let client = new_client(ConnectionParameters::default().initial_rtt(CUSTOM_INIT_RTT));
60+
assert_eq!(client.conn_params.get_initial_rtt(), CUSTOM_INIT_RTT);
61+
}
62+
5663
#[test]
5764
fn idle_timeout() {
5865
let mut client = default_client();

0 commit comments

Comments
 (0)