fix(tui): surface incomplete statistics and strengthen review coverage
This commit is contained in:
4 files changed
+239
-22
No files matched your search
@@ -355,3 +355,12 @@ fn duration_close_waits_for_rate_allowance_after_the_deadline() {
|
||||
assert_eq!(closed.recv_window, Some(3));
|
||||
assert_eq!(server.session_count(), 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn default_server_resource_limits_remain_bounded() {
|
||||
let config = ServerConfig::default();
|
||||
// Upper resource budgets, not an exact default or a comparison against
|
||||
// the same constants used by the implementation. Smaller bounds are fine.
|
||||
assert!((1..=1024).contains(&config.max_sessions()));
|
||||
assert!((1..=65_507).contains(&config.max_packet_length()));
|
||||
}
|
||||
Reference in new issue
Block a user