test(client): add integration tests for packet length and server fill
Verify that the client correctly handles custom packet lengths and server fill negotiation to ensure protocol compliance and support for larger MTUs. Add validation to reject empty server fill strings during configuration.
This commit is contained in:
6 files changed
+384
-2
No files matched your search
@@ -838,6 +838,17 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maps_length_option() {
|
||||
let args = parse(&["--length", "1472", "127.0.0.1:2112"]).unwrap();
|
||||
assert_eq!(args.length, 1472);
|
||||
assert_eq!(args.to_client_config().length, 1472);
|
||||
|
||||
let args = parse(&["127.0.0.1:2112"]).unwrap();
|
||||
assert_eq!(args.length, 0);
|
||||
assert_eq!(args.to_client_config().length, 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maps_loose_negotiation() {
|
||||
let args = parse(&["127.0.0.1:2112"]).unwrap();
|
||||
|
||||
Reference in new issue
Block a user