Skip to content

Commit

Permalink
Add test for has_active_connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Apr 11, 2024
1 parent 342f492 commit 6227f50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions neqo-transport/tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,3 +774,16 @@ fn ech() {
.ech_accepted()
.unwrap());
}

#[test]
fn has_active_connections() {
let mut server = default_server();
let mut client = default_client();

assert!(!server.has_active_connections());

let initial = client.process(None, now());
let _ = server.process(initial.as_dgram_ref(), now()).dgram();

assert!(server.has_active_connections());
}

0 comments on commit 6227f50

Please sign in to comment.